public class ConditionList extends Condition implements java.beans.PropertyChangeListener
Condition.DateConstraint, Condition.Operator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Condition_Prop |
static java.lang.String |
Operator_Prop |
DateConstraint_Prop, IgnoreCase_Prop, Negated_Prop, PropertyName_Prop, Value_Prop
Constructor and Description |
---|
ConditionList() |
Modifier and Type | Method and Description |
---|---|
ConditionList |
addCondition(Condition.Operator anOperator,
Condition aCondition)
Adds a condition.
|
ConditionList |
addCondition(Condition.Operator anOperator,
Condition aCondition,
int anIndex)
Adds a condition at given index.
|
ConditionList |
addCondition(Condition.Operator anOperator,
java.lang.String aPropertyName,
Condition.Operator anOperator2,
java.lang.Object aValue)
Adds a condition for given
|
ConditionList |
addCondition(java.lang.String aPropertyName,
Condition.Operator anOperator,
java.lang.Object aValue)
Adds a condition for given
|
ConditionList |
clone()
Standard clone implementation.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
ConditionList |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML Unarchival.
|
Condition |
getCondition(int anIndex)
Returns the condition at the given index.
|
int |
getConditionCount()
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.Operator |
getOperator(int anIndex)
Returns the operator at the given index.
|
java.util.List<Condition.Operator> |
getOperators()
Returns the operators.
|
boolean |
getValue(Entity anEntity,
java.lang.Object anObj)
Override to handle list.
|
int |
indexOfCondition(Condition aCondition)
Returns the index of a given condition.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Catches child property changes and forwards them to our listener.
|
int |
removeCondition(Condition aCondition)
Removes the given condition.
|
Condition |
removeCondition(int anIndex)
Removes a condition from a given index.
|
void |
setConditions(java.util.List<Condition> theConditions)
Sets the conditions.
|
void |
setOperator(Condition.Operator anOperator,
int anIndex)
Sets the operator at the given index.
|
java.lang.String |
toString()
Returns a string for condition.
|
RXElement |
toXML(RXArchiver anArchiver)
XML Archival.
|
getDateConstraint, getDateConstraintDefault, getDateConstraintMultiplier, getIgnoreCase, getOperator, getOperators, getPropertyName, getValue, isNegated, setDateConstraint, setIgnoreCase, setNegated, setOperator, setPropertyName, setValue
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public static final java.lang.String Condition_Prop
public static final java.lang.String Operator_Prop
public java.util.List<Condition.Operator> getOperators()
public java.util.List<Condition> getConditions()
public void setConditions(java.util.List<Condition> theConditions)
public int getConditionCount()
public Condition getCondition(int anIndex)
public ConditionList addCondition(Condition.Operator anOperator, Condition aCondition)
public ConditionList addCondition(Condition.Operator anOperator, Condition aCondition, int anIndex)
public ConditionList addCondition(java.lang.String aPropertyName, Condition.Operator anOperator, java.lang.Object aValue)
public ConditionList addCondition(Condition.Operator anOperator, java.lang.String aPropertyName, Condition.Operator anOperator2, java.lang.Object aValue)
public Condition removeCondition(int anIndex)
public int removeCondition(Condition aCondition)
public int indexOfCondition(Condition aCondition)
public Condition.Operator getOperator(int anIndex)
public void setOperator(Condition.Operator anOperator, int anIndex)
public boolean getValue(Entity anEntity, java.lang.Object anObj)
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean equals(java.lang.Object anObj)
public ConditionList clone()
public java.util.List<java.lang.String> getJSONKeys()
getJSONKeys
in interface RMJSONArchiver.GetKeys
getJSONKeys
in class Condition
public RXElement toXML(RXArchiver anArchiver)
toXML
in interface Archivable
toXML
in class Condition
public ConditionList fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML
in interface Archivable
fromXML
in class Condition