public class IlrVariable extends IlrValue implements IlrAssignable, ilog.rules.factory.IlrVariableElement
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.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
rulesetVariable |
| Constructor and Description |
|---|
IlrVariable(IlrReflect reflect,
java.lang.String definitionName,
java.lang.Class type)
Constructs a variable binding.
|
IlrVariable(java.lang.String definitionName,
IlrType type)
Constructs a variable binding.
|
IlrVariable(java.lang.String name,
IlrValue value)
Constructs a variable binding.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exploreAssignable(IlrFactoryExplorer explorer)
This method explores the variable using a factory explorer.
|
java.lang.Object |
exploreValue(IlrFactoryExplorer explorer)
This method explores the variable using a factory explorer.
|
java.lang.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.
|
java.lang.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(java.lang.String name)
Sets the name of the variable.
|
void |
setValue(IlrValue value)
Sets the value of the variable.
|
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, toPrefixIncrclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic IlrVariable(java.lang.String name,
IlrValue value)
name - The name of the variable.value - The value to which the variable is bound.public IlrVariable(IlrReflect reflect, java.lang.String definitionName, java.lang.Class type)
reflect - A reflect.definitionName - The name of the variable.type - The type to which the variable is bound.public IlrVariable(java.lang.String definitionName,
IlrType type)
definitionName - The name of the variable.type - The type to which the variable is bound.public java.lang.String getName()
public java.lang.String getShortName()
public void setName(java.lang.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 IlrAssignablevalue - The value assigned to the expression.true is the value value
can be assigned to the variable, false otherwise.public boolean isEventCondition()
IlrValueisEventCondition in class IlrValuetrue if this value is, or is bound to, the result of
an event condition, and false otherwise.public java.lang.Object exploreValue(IlrFactoryExplorer explorer)
exploreValue in class IlrValueexplorer - The factory explorer.null
if the method does not return a value.public java.lang.Object exploreAssignable(IlrFactoryExplorer explorer)
exploreAssignable in interface IlrAssignableexplorer - The factory explorer.null
if the method does not return a value.public IlrPackageFactory getPackage()
null.© Copyright IBM Corp. 1987, 2017