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 SummaryNested classes/interfaces inherited from class com.inductiveautomation.snap.data.ConditionCondition.DateConstraint, Condition.Operator
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.snap.data.ConditionDateConstraint_Prop, IgnoreCase_Prop, Negated_Prop, PropertyName_Prop, Value_Prop
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ConditiongetDateConstraint, getDateConstraintDefault, getDateConstraintMultiplier, getIgnoreCase, getOperator, getOperators, getPropertyName, getValue, isNegated, setDateConstraint, setIgnoreCase, setNegated, setOperator, setPropertyName, setValueMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
Condition_Prop- See Also:
 
- 
Operator_Prop- See Also:
 
 
- 
- 
Constructor Details- 
ConditionListpublic ConditionList()
 
- 
- 
Method Details- 
getOperatorsReturns the operators.
- 
getConditionsReturns the conditions.
- 
setConditionsSets the conditions.
- 
getConditionCountpublic int getConditionCount()Returns the number of conditions in this composite.
- 
getConditionReturns the condition at the given index.
- 
addConditionAdds a condition.
- 
addConditionAdds a condition at given index.
- 
addConditionpublic ConditionList addCondition(String aPropertyName, Condition.Operator anOperator, Object aValue) Adds a condition for given
- 
addConditionpublic ConditionList addCondition(Condition.Operator anOperator, String aPropertyName, Condition.Operator anOperator2, Object aValue) Adds a condition for given
- 
removeConditionRemoves a condition from a given index.
- 
removeConditionRemoves the given condition.
- 
indexOfConditionReturns the index of a given condition.
- 
getOperatorReturns the operator at the given index.
- 
setOperatorSets the operator at the given index.
- 
getValueOverride to handle list.
- 
propertyChangeCatches child property changes and forwards them to our listener.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.
- 
getJSONKeysRMJSONArchiver.GetKeys method.- Specified by:
- getJSONKeysin interface- RMJSONArchiver.GetKeys
- Overrides:
- getJSONKeysin class- Condition
 
- 
toXMLXML Archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- Condition
 
- 
fromXMLXML Unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- Condition
 
- 
toStringReturns a string for condition.
 
-