Rule Execution Server API

ilog.rules.factory
Class IlrContextValue

java.lang.Object
  extended by ilog.rules.factory.IlrValue
      extended by ilog.rules.factory.IlrContextValue
All Implemented Interfaces:
Serializable

public class IlrContextValue
extends IlrValue

This class represents the ?context variable 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
IlrContextValue(IlrClass clazz)
          Constructs a context value using a specific context class.
IlrContextValue(IlrReflect reflect, Class clazz)
          Constructs a context value using a specific context class.
IlrContextValue(IlrRulesetFactory ruleset)
          Constructs a context value for a rule set factory.
 
Method Summary
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this context value using a factory explorer and returns an object as a result.
 String getClassName()
          Gets the class name of this context value.
 String getShortClassName()
          Gets the short class name of this context value.
 
Methods inherited from class ilog.rules.factory.IlrValue
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrContextValue

public IlrContextValue(IlrRulesetFactory ruleset)
Constructs a context value for a rule set factory.

Parameters:
ruleset - The rule set factory.

IlrContextValue

public IlrContextValue(IlrReflect reflect,
                       Class clazz)
Constructs a context value using a specific context class.

Parameters:
reflect - A reflect.
clazz - The class descriptor of a subclass of IlrContext.

IlrContextValue

public IlrContextValue(IlrClass clazz)
Constructs a context value using a specific context class.

Parameters:
clazz - The XOM class descriptor, a subclass of IlrContext.
Method Detail

getClassName

public String getClassName()
Gets the class name of this context value.

Returns:
The class name of this context value.

getShortClassName

public String getShortClassName()
Gets the short class name of this context value.

Returns:
The short class name of this context value.

exploreValue

public Object exploreValue(IlrFactoryExplorer explorer)
Explores this context value using a factory explorer and returns an object as a result.

Specified by:
exploreValue in class IlrValue
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