|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrValue ilog.rules.factory.IlrVariable
public class IlrVariable
This class represents a variable binding 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.
Field Summary | |
---|---|
protected boolean |
rulesetVariable
|
Constructor Summary | |
---|---|
IlrVariable(IlrReflect reflect,
String definitionName,
Class type)
Constructs a variable binding. |
|
IlrVariable(String definitionName,
IlrType type)
Constructs a variable binding. |
|
IlrVariable(String name,
IlrValue value)
Constructs a variable binding. |
Method Summary | |
---|---|
Object |
exploreAssignable(IlrFactoryExplorer explorer)
This method explores the variable using a factory explorer. |
Object |
exploreValue(IlrFactoryExplorer explorer)
This method explores the variable using a factory explorer. |
String |
getName()
Gets the name of the variable. |
IlrPackageFactory |
getPackage()
Returns the package in which the variable is defined in case this variable models a package variable. |
String |
getShortName()
Gets the short name of the variable |
IlrValue |
getValue()
Gets the value of the variable. |
boolean |
isAssignableFrom(IlrValue value)
Checks whether the value value can be assigned
to the variable. |
boolean |
isEventCondition()
Returns whether this value is, or is bound to, the result of a condition, and this condition is an event condition. |
void |
setName(String name)
Sets the name of the variable. |
void |
setValue(IlrValue value)
Sets the value of the variable. |
Methods inherited from class ilog.rules.factory.IlrValue |
---|
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, 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 |
Methods inherited from interface ilog.rules.factory.IlrAssignable |
---|
getType |
Field Detail |
---|
protected boolean rulesetVariable
Constructor Detail |
---|
public IlrVariable(String name, IlrValue value)
name
- The name of the variable.value
- The value to which the variable is bound.public IlrVariable(IlrReflect reflect, String definitionName, Class type)
reflect
- A reflect.definitionName
- The name of the variable.type
- The type to which the variable is bound.public IlrVariable(String definitionName, IlrType type)
definitionName
- The name of the variable.type
- The type to which the variable is bound.Method Detail |
---|
public String getName()
public String getShortName()
public void setName(String name)
name
- The new name of the variable.public IlrValue getValue()
public void setValue(IlrValue value)
value
- The new value of the variable.public boolean isAssignableFrom(IlrValue value)
value
can be assigned
to the variable.
isAssignableFrom
in interface IlrAssignable
value
- The value assigned to the expression.
true
is the value value
can be assigned to the variable, false
otherwise.public boolean isEventCondition()
IlrValue
isEventCondition
in class IlrValue
true
if this value is, or is bound to, the result of
an event condition, and false
otherwise.public Object exploreValue(IlrFactoryExplorer explorer)
exploreValue
in class IlrValue
explorer
- The factory explorer.
null
if the method does not return a value.public Object exploreAssignable(IlrFactoryExplorer explorer)
exploreAssignable
in interface IlrAssignable
explorer
- The factory explorer.
null
if the method does not return a value.public IlrPackageFactory getPackage()
null
.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |