@PersistantProperty(property="min") @PersistantProperty(property="max") public class BETWEEN extends AbstractEvaluationOperator
Modifier and Type | Field and Description |
---|---|
static String |
BETWEEN_ID |
Constructor and Description |
---|
BETWEEN() |
BETWEEN(IReadAccessor min,
IReadAccessor max) |
Modifier and Type | Method and Description |
---|---|
BETWEEN |
clone()
Clones the Addon.
|
protected void |
compileOperator(ICompilationContext ctxt,
IEvaluationCondition condition)
Does nothing in basic implementation
|
boolean |
equals(Object obj) |
boolean |
evaluate(IExecutionContext ctxt,
IEvaluationCondition condition)
Evaluate result for this operator.
|
String |
getImplementationId()
Unique addon implementation ID.
|
IEvaluationOperator |
getInverted()
Returns a new instance instance of Evaluation operator, allowing to invert the operands.
|
IReadAccessor |
getMax() |
IReadAccessor |
getMin() |
IEvaluationOperator |
getNegated()
Returns a new instance instance of Evaluation operator, allowing to negate the operands.
|
Class<?> |
getReferenceExpectedType(Class<?> srcType,
Class<?> srcGenericType)
Returns null in basic implementation.
|
String |
getRepresentation()
String representation for human read
|
Class<?> |
getSourceExpectedType()
Returns null in basic implementation.
|
int |
hashCode() |
void |
setMax(IReadAccessor max) |
void |
setMin(IReadAccessor min) |
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
compile, getReferencePreferredType
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String BETWEEN_ID
public BETWEEN()
public BETWEEN(IReadAccessor min, IReadAccessor max)
protected void compileOperator(ICompilationContext ctxt, IEvaluationCondition condition) throws MRuleValidationException
AbstractEvaluationOperator
compileOperator
in class AbstractEvaluationOperator
MRuleValidationException
public boolean evaluate(IExecutionContext ctxt, IEvaluationCondition condition) throws MConditionEvaluationException
IEvaluationOperator
MConditionEvaluationException
public IEvaluationOperator getInverted()
IEvaluationOperator
public IEvaluationOperator getNegated()
IEvaluationOperator
public String getRepresentation()
IEvaluationOperator
public String getImplementationId()
IAddon
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.toString
in interface Outable
toString
in class AbstractEvaluationOperator
IOException
public Class<?> getSourceExpectedType()
AbstractEvaluationOperator
getSourceExpectedType
in interface IEvaluationOperator
getSourceExpectedType
in class AbstractEvaluationOperator
public Class<?> getReferenceExpectedType(Class<?> srcType, Class<?> srcGenericType)
AbstractEvaluationOperator
getReferenceExpectedType
in interface IEvaluationOperator
getReferenceExpectedType
in class AbstractEvaluationOperator
srcType
- If known, the source accessor type should be provided to make better prevision.srcGenericType
- If known, the source accessor generic type should be provided to make better prevision.public BETWEEN clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IEvaluationOperator
clone
in class AbstractEvaluationOperator
public boolean equals(Object obj)
equals
in class AbstractEvaluationOperator
public int hashCode()
hashCode
in class AbstractEvaluationOperator
public IReadAccessor getMin()
public void setMin(IReadAccessor min)
public IReadAccessor getMax()
public void setMax(IReadAccessor max)