Class ConditionList
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.data.Condition
com.inductiveautomation.snap.data.ConditionList
- All Implemented Interfaces:
Archivable
,RMJSONArchiver.GetKeys
,RMPropertyChanger
,PropertyChangeListener
,Cloneable
,EventListener
This condition subclass represents a list of conditions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.snap.data.Condition
Condition.DateConstraint, Condition.Operator
-
Field Summary
FieldsFields inherited from class com.inductiveautomation.snap.data.Condition
DateConstraint_Prop, IgnoreCase_Prop, Negated_Prop, PropertyName_Prop, Value_Prop
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCondition
(Condition.Operator anOperator, Condition aCondition) Adds a condition.addCondition
(Condition.Operator anOperator, Condition aCondition, int anIndex) Adds a condition at given index.addCondition
(Condition.Operator anOperator, String aPropertyName, Condition.Operator anOperator2, Object aValue) Adds a condition for givenaddCondition
(String aPropertyName, Condition.Operator anOperator, Object aValue) Adds a condition for givenclone()
Standard clone implementation.boolean
Standard equals implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML Unarchival.getCondition
(int anIndex) Returns the condition at the given index.int
Returns the number of conditions in this composite.Returns the conditions.RMJSONArchiver.GetKeys method.getOperator
(int anIndex) Returns the operator at the given index.Returns the operators.boolean
Override to handle list.int
indexOfCondition
(Condition aCondition) Returns the index of a given condition.void
propertyChange
(PropertyChangeEvent anEvent) Catches child property changes and forwards them to our listener.removeCondition
(int anIndex) Removes a condition from a given index.int
removeCondition
(Condition aCondition) Removes the given condition.void
setConditions
(List<Condition> theConditions) Sets the conditions.void
setOperator
(Condition.Operator anOperator, int anIndex) Sets the operator at the given index.toString()
Returns a string for condition.toXML
(RXArchiver anArchiver) XML Archival.Methods inherited from class com.inductiveautomation.snap.data.Condition
getDateConstraint, getDateConstraintDefault, getDateConstraintMultiplier, getIgnoreCase, getOperator, getOperators, getPropertyName, getValue, isNegated, setDateConstraint, setIgnoreCase, setNegated, setOperator, setPropertyName, setValue
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
Condition_Prop
- See Also:
-
Operator_Prop
- See Also:
-
-
Constructor Details
-
ConditionList
public ConditionList()
-
-
Method Details
-
getOperators
Returns the operators. -
getConditions
Returns the conditions. -
setConditions
Sets the conditions. -
getConditionCount
public int getConditionCount()Returns the number of conditions in this composite. -
getCondition
Returns the condition at the given index. -
addCondition
Adds a condition. -
addCondition
Adds a condition at given index. -
addCondition
public ConditionList addCondition(String aPropertyName, Condition.Operator anOperator, Object aValue) Adds a condition for given -
addCondition
public ConditionList addCondition(Condition.Operator anOperator, String aPropertyName, Condition.Operator anOperator2, Object aValue) Adds a condition for given -
removeCondition
Removes a condition from a given index. -
removeCondition
Removes the given condition. -
indexOfCondition
Returns the index of a given condition. -
getOperator
Returns the operator at the given index. -
setOperator
Sets the operator at the given index. -
getValue
Override to handle list. -
propertyChange
Catches child property changes and forwards them to our listener.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
equals
Standard equals implementation. -
clone
Standard clone implementation. -
getJSONKeys
RMJSONArchiver.GetKeys method.- Specified by:
getJSONKeys
in interfaceRMJSONArchiver.GetKeys
- Overrides:
getJSONKeys
in classCondition
-
toXML
XML Archival.- Specified by:
toXML
in interfaceArchivable
- Overrides:
toXML
in classCondition
-
fromXML
XML Unarchival.- Specified by:
fromXML
in interfaceArchivable
- Overrides:
fromXML
in classCondition
-
toString
Returns a string for condition.
-