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,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class ConditionList extends Condition implements java.beans.PropertyChangeListener This condition subclass represents a list of conditions.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.data.ConditionCondition.DateConstraint, Condition.Operator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCondition_Propstatic java.lang.StringOperator_Prop- 
Fields inherited from class com.inductiveautomation.snap.data.ConditionDateConstraint_Prop, IgnoreCase_Prop, Negated_Prop, PropertyName_Prop, Value_Prop
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConditionList()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionListaddCondition(Condition.Operator anOperator, Condition aCondition)Adds a condition.ConditionListaddCondition(Condition.Operator anOperator, Condition aCondition, int anIndex)Adds a condition at given index.ConditionListaddCondition(Condition.Operator anOperator, java.lang.String aPropertyName, Condition.Operator anOperator2, java.lang.Object aValue)Adds a condition for givenConditionListaddCondition(java.lang.String aPropertyName, Condition.Operator anOperator, java.lang.Object aValue)Adds a condition for givenConditionListclone()Standard clone implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.ConditionListfromXML(RXArchiver anArchiver, RXElement anElement)XML Unarchival.ConditiongetCondition(int anIndex)Returns the condition at the given index.intgetConditionCount()Returns the number of conditions in this composite.java.util.List<Condition>getConditions()Returns the conditions.java.util.List<java.lang.String>getJSONKeys()RMJSONArchiver.GetKeys method.Condition.OperatorgetOperator(int anIndex)Returns the operator at the given index.java.util.List<Condition.Operator>getOperators()Returns the operators.booleangetValue(Entity anEntity, java.lang.Object anObj)Override to handle list.intindexOfCondition(Condition aCondition)Returns the index of a given condition.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Catches child property changes and forwards them to our listener.ConditionremoveCondition(int anIndex)Removes a condition from a given index.intremoveCondition(Condition aCondition)Removes the given condition.voidsetConditions(java.util.List<Condition> theConditions)Sets the conditions.voidsetOperator(Condition.Operator anOperator, int anIndex)Sets the operator at the given index.java.lang.StringtoString()Returns a string for condition.RXElementtoXML(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, setValue
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
Condition_Proppublic static final java.lang.String Condition_Prop - See Also:
- Constant Field Values
 
 - 
Operator_Proppublic static final java.lang.String Operator_Prop - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getOperatorspublic java.util.List<Condition.Operator> getOperators() Returns the operators.
 - 
getConditionspublic java.util.List<Condition> getConditions() Returns the conditions.
 - 
setConditionspublic void setConditions(java.util.List<Condition> theConditions) Sets the conditions.
 - 
getConditionCountpublic int getConditionCount() Returns the number of conditions in this composite.
 - 
getConditionpublic Condition getCondition(int anIndex) Returns the condition at the given index.
 - 
addConditionpublic ConditionList addCondition(Condition.Operator anOperator, Condition aCondition) Adds a condition.
 - 
addConditionpublic ConditionList addCondition(Condition.Operator anOperator, Condition aCondition, int anIndex) Adds a condition at given index.
 - 
addConditionpublic ConditionList addCondition(java.lang.String aPropertyName, Condition.Operator anOperator, java.lang.Object aValue) Adds a condition for given
 - 
addConditionpublic ConditionList addCondition(Condition.Operator anOperator, java.lang.String aPropertyName, Condition.Operator anOperator2, java.lang.Object aValue) Adds a condition for given
 - 
removeConditionpublic Condition removeCondition(int anIndex) Removes a condition from a given index.
 - 
removeConditionpublic int removeCondition(Condition aCondition) Removes the given condition.
 - 
indexOfConditionpublic int indexOfCondition(Condition aCondition) Returns the index of a given condition.
 - 
getOperatorpublic Condition.Operator getOperator(int anIndex) Returns the operator at the given index.
 - 
setOperatorpublic void setOperator(Condition.Operator anOperator, int anIndex) Sets the operator at the given index.
 - 
getValuepublic boolean getValue(Entity anEntity, java.lang.Object anObj) Override to handle list.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Catches child property changes and forwards them to our listener.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
clonepublic ConditionList clone() Standard clone implementation.
 - 
getJSONKeyspublic java.util.List<java.lang.String> getJSONKeys() RMJSONArchiver.GetKeys method.- Specified by:
- getJSONKeysin interface- RMJSONArchiver.GetKeys
- Overrides:
- getJSONKeysin class- Condition
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- Condition
 
 - 
fromXMLpublic ConditionList fromXML(RXArchiver anArchiver, RXElement anElement) XML Unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- Condition
 
 
- 
 
-