Rule Execution Server API

ilog.rules.factory
Class IlrSimpleCondition

java.lang.Object
  extended by ilog.rules.factory.IlrCondition
      extended by ilog.rules.factory.IlrTestCondition
          extended by ilog.rules.factory.IlrClassCondition
              extended by ilog.rules.factory.IlrSimpleCondition
All Implemented Interfaces:
Serializable

public class IlrSimpleCondition
extends IlrClassCondition

This class represents a simple condition of the rule language.

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:
Serialized Form

Constructor Summary
IlrSimpleCondition(IlrClass clazz)
          Constructs a simple condition which operates on the instances of the class passed as the argument.
IlrSimpleCondition(IlrReflect reflect, Class clazz)
          Constructs a simple condition which operates on the instances of the class passed as the argument.
IlrSimpleCondition(IlrReflect reflect, String className)
          Constructs a simple condition which operates on the instances of the class whose name is passed as the argument.
 
Method Summary
 IlrVariable bindObject(String name)
          Creates a variable to represent the binding of the object matched by this condition.
 Object exploreCondition(IlrFactoryExplorer explorer)
          Explores this condition using a factory explorer and returns an object as a result.
 IlrVariable getObjectBinding()
          Gets the object binding of this condition.
 void setEventCondition(boolean eventCondition)
          Deprecated. As of IBM Decision Server 7.5, event processing is deprecated.
 
Methods inherited from class ilog.rules.factory.IlrClassCondition
bindField, getEnumerator, getEnumeratorClause, getField, setEnumerator
 
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
getClassName, getObject, getShortClassName, getXOMClassScope, isEventCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrSimpleCondition

public IlrSimpleCondition(IlrClass clazz)
Constructs a simple condition which operates on the instances of the class passed as the argument.

Parameters:
clazz - The class of the simple condition.

IlrSimpleCondition

public IlrSimpleCondition(IlrReflect reflect,
                          Class clazz)
Constructs a simple condition which operates on the instances of the class passed as the argument.

Parameters:
reflect - A reflect.
clazz - The class of the simple condition.

IlrSimpleCondition

public IlrSimpleCondition(IlrReflect reflect,
                          String className)
Constructs a simple condition which operates on the instances of the class whose name is passed as the argument.

Parameters:
reflect - A reflect.
className - The fully-qualified name of the class of the simple condition.
Method Detail

setEventCondition

public final void setEventCondition(boolean eventCondition)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated.

Sets whether the condition is an event condition or not.

Parameters:
eventCondition - is true to mark the condition as an event condition, and false otherwise.

bindObject

public IlrVariable bindObject(String name)
Creates a variable to represent the binding of the object matched by this condition.

Parameters:
name - The name of the variable binding.
Returns:
The variable which represents the binding of the object matched by this condition.

getObjectBinding

public final IlrVariable getObjectBinding()
Gets the object binding of this condition.

Returns:
The variable which represents the binding of the object matched by this condition, or null if the object is not bound.

exploreCondition

public Object exploreCondition(IlrFactoryExplorer explorer)
Explores this condition using a factory explorer and returns an object as a result.

Specified by:
exploreCondition in class IlrCondition
Parameters:
explorer - The factory explorer.
Returns:
An object which represents the result of the exploration, or null if the method does not return a value.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013