ilog.rules.factory
Class IlrClassCondition
- java.lang.Object
-
- ilog.rules.factory.IlrCondition
-
- ilog.rules.factory.IlrTestCondition
-
- ilog.rules.factory.IlrClassCondition
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- IlrCollectCondition, IlrCollectElement, IlrExistsCondition, IlrNotCondition, IlrSimpleCondition
public abstract class IlrClassCondition extends IlrTestCondition
This abstract class is the base class of non-temporal rule conditions.Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IlrVariablebindField(java.lang.String name, java.lang.String fieldName)Creates a variable which represents the binding of a field value.IlrValuegetEnumerator()Gets the enumerator value of this class condition.java.lang.StringgetEnumeratorClause()Gets the enumerator clause.IlrFieldValuegetField(java.lang.String fieldName)Creates a field value which represents a field of the object matched by this condition.voidsetEnumerator(java.lang.String clause, IlrValue value)Sets an enumerator clause.-
Methods inherited from class ilog.rules.factory.IlrTestCondition
addBinding, addTest, enumerateBindings, enumerateTests, getBindingCount, getBindings, getTestCount, getTests, removeBinding, removeTest
-
Methods inherited from class ilog.rules.factory.IlrCondition
exploreCondition, getClassName, getObject, getShortClassName, getXOMClassScope, isEventCondition
-
-
-
-
Method Detail
-
getEnumerator
public final IlrValue getEnumerator()
Gets the enumerator value of this class condition. The enumerator value is the expression which followsfromorinclauses of the rule language.- Returns:
- A value, or
nullif the condition does not have afromorinclause.
-
getEnumeratorClause
public final java.lang.String getEnumeratorClause()
Gets the enumerator clause. This can be the string"from","in"or null.- Returns:
- The enumerator clause, or
nullif the condition does not have an enumerator.
-
setEnumerator
public final void setEnumerator(java.lang.String clause, IlrValue value)Sets an enumerator clause. The first argument should be one the predefined keywords:"from"or"in".- Parameters:
clause- Can be"from"or"in".value- A value, enumerator of the condition.
-
getField
public final IlrFieldValue getField(java.lang.String fieldName)
Creates a field value which represents a field of the object matched by this condition.- Parameters:
fieldName- The name of the field.- Returns:
- A field value.
-
bindField
public final IlrVariable bindField(java.lang.String name, java.lang.String fieldName)
Creates a variable which represents the binding of a field value.- Parameters:
name- The name of the variable.fieldName- The name of the field.- Returns:
- A variable bound to the field value.
-
-