public class RMCondition
extends com.reportmill.base.RMObject
Modifier and Type | Class and Description |
---|---|
static class |
RMCondition.DateConstraint |
static class |
RMCondition.Operator |
Constructor and Description |
---|
RMCondition()
Creates a new select condition.
|
RMCondition(java.lang.Object aLeft,
RMCondition.Operator anOperator,
java.lang.Object aRight)
Creates a new select condition.
|
Modifier and Type | Method and Description |
---|---|
RMCondition |
clone()
Standard clone implementation (to get co-variant return type).
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
RMCondition |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML Unarchival.
|
RMCondition.DateConstraint |
getDateConstraint()
Returns date constraint.
|
boolean |
getIgnoreCase()
Returns whether condition ignores case (string types).
|
java.lang.Object |
getLeftSide()
Returns the left side.
|
RMCondition.Operator |
getOperator()
Returns the operator.
|
static java.util.List<RMCondition.Operator> |
getOperators(RMProperty.Type aType)
Returns the valid operators for a given property type.
|
java.lang.Object |
getRightSide()
Returns the right side.
|
boolean |
getValue(java.lang.Object anObj)
Returns the value of evaluating this condition on given object.
|
boolean |
isNegated()
Returns whether condition is negated.
|
void |
setDateConstraint(RMCondition.DateConstraint aDateConstraint)
Sets the date constraint.
|
void |
setIgnoreCase(boolean aValue)
Sets whether condition ignores case (string types).
|
void |
setLeftSide(java.lang.Object aValue)
Sets the left side.
|
void |
setNegated(boolean aValue)
Sets whether condition is negated.
|
void |
setOperator(RMCondition.Operator anOperator)
Sets the operator.
|
void |
setRightSide(java.lang.Object aValue)
Sets the right side.
|
void |
setRightSideValues(java.util.Map aMap)
Sets right side values from map, if right side matches key from given map.
|
java.lang.String |
toString()
Returns a string for condition.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML Archival.
|
addListener, addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing
public RMCondition()
public RMCondition(java.lang.Object aLeft, RMCondition.Operator anOperator, java.lang.Object aRight)
public java.lang.Object getLeftSide()
public void setLeftSide(java.lang.Object aValue)
public RMCondition.Operator getOperator()
public void setOperator(RMCondition.Operator anOperator)
public java.lang.Object getRightSide()
public void setRightSide(java.lang.Object aValue)
public boolean isNegated()
public void setNegated(boolean aValue)
public boolean getIgnoreCase()
public void setIgnoreCase(boolean aValue)
public RMCondition.DateConstraint getDateConstraint()
public void setDateConstraint(RMCondition.DateConstraint aDateConstraint)
public void setRightSideValues(java.util.Map aMap)
public static java.util.List<RMCondition.Operator> getOperators(RMProperty.Type aType)
public boolean getValue(java.lang.Object anObj)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public RMCondition clone()
clone
in class com.reportmill.base.RMObject
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public RMCondition fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
public java.lang.String toString()
toString
in class com.reportmill.base.RMObject