Rule Execution Server API

ilog.rules.factory
Class IlrClassCondition

java.lang.Object
  extended by ilog.rules.factory.IlrCondition
      extended by ilog.rules.factory.IlrTestCondition
          extended by ilog.rules.factory.IlrClassCondition
All Implemented Interfaces:
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.

See Also:
IlrSimpleCondition, IlrNotCondition, IlrExistsCondition, IlrCollectCondition, Serialized Form

Method Summary
 IlrVariable bindField(String name, String fieldName)
          Creates a variable which represents the binding of a field value.
 IlrValue getEnumerator()
          Gets the enumerator value of this class condition.
 String getEnumeratorClause()
          Gets the enumerator clause.
 IlrFieldValue getField(String fieldName)
          Creates a field value which represents a field of the object matched by this condition.
 void setEnumerator(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEnumerator

public final IlrValue getEnumerator()
Gets the enumerator value of this class condition. The enumerator value is the expression which follows from or in clauses of the rule language.

Returns:
A value, or null if the condition does not have a from or in clause.

getEnumeratorClause

public final String getEnumeratorClause()
Gets the enumerator clause. This can be the string "from", "in" or null.

Returns:
The enumerator clause, or null if the condition does not have an enumerator.

setEnumerator

public final void setEnumerator(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(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(String name,
                                   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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013