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.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML Unarchival.getCondition(int anIndex) Returns the condition at the given index.intReturns 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.booleanOverride to handle list.intindexOfCondition(Condition aCondition) Returns the index of a given condition.voidpropertyChange(PropertyChangeEvent anEvent) Catches child property changes and forwards them to our listener.removeCondition(int anIndex) Removes a condition from a given index.intremoveCondition(Condition aCondition) Removes the given condition.voidsetConditions(List<Condition> theConditions) Sets the conditions.voidsetOperator(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, setValueMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods 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:
propertyChangein interfacePropertyChangeListener
-
equals
Standard equals implementation. -
clone
Standard clone implementation. -
getJSONKeys
RMJSONArchiver.GetKeys method.- Specified by:
getJSONKeysin interfaceRMJSONArchiver.GetKeys- Overrides:
getJSONKeysin classCondition
-
toXML
XML Archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classCondition
-
fromXML
XML Unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classCondition
-
toString
Returns a string for condition.
-