|
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.engine.IlrParameterMap
public class IlrParameterMap
Implements a structure for storing parameter values to set or get from ruleset variables. Each parameter is stored with its name and its value.
IlrContext.setParameters(IlrParameterMap)
,
IlrContext.getReturnValues()
,
IlrContext.execute()
,
IlrContext.execute(String name)
,
IlrContext.executeTask()
,
Serialized Form
Constructor Summary | |
---|---|
IlrParameterMap()
Creates an empty IlrParameterMap . |
Method Summary | |
---|---|
void |
clear()
Clears the internal structure. |
boolean |
getBooleanValue(String name)
Gets the boolean value of the parameter named "name". |
byte |
getByteValue(String name)
Gets the byte value of the parameter named "name". |
char |
getCharValue(String name)
Gets the char value of the parameter named "name". |
double |
getDoubleValue(String name)
Gets the double value of the parameter named "name". |
float |
getFloatValue(String name)
Gets the float value of the parameter named "name". |
int |
getIntValue(String name)
Gets the integer value of the parameter named "name". |
long |
getLongValue(String name)
Gets the long value of the parameter named "name". |
Object |
getObjectValue(String name)
Gets the Object value of the parameter named "name". |
short |
getShortValue(String name)
Gets the short value of the parameter named "name". |
String |
getStringValue(String name)
Gets the String value of the parameter named "name". |
Set |
keySet()
Returns a java.util.Set with all the keys contained in the structure. |
void |
setParameter(String name,
boolean value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
byte value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
char value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
double value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
float value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
int value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
long value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
Object value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
short value)
Store for the parameter "name" and its value "value". |
void |
setParameter(String name,
String value)
Store for the parameter "name" and its value "value". |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IlrParameterMap()
IlrParameterMap
.
Method Detail |
---|
public Set keySet()
public void setParameter(String name, boolean value)
name
- The parameter name.value
- The value of the boolean
parameter.public void setParameter(String name, byte value)
name
- The parameter name.value
- The value of the byte
parameter.public void setParameter(String name, char value)
name
- The parameter name.value
- The value of the char
parameter.public void setParameter(String name, int value)
name
- The parameter name.value
- The value of the integer
parameter.public void setParameter(String name, float value)
name
- The parameter name.value
- The value of the float
parameter.public void setParameter(String name, double value)
name
- The parameter name.value
- The value of the double
parameter.public void setParameter(String name, short value)
name
- The parameter name.value
- The value of the short
parameter.public void setParameter(String name, long value)
name
- The parameter name.value
- The value of the long
parameter.public void setParameter(String name, Object value)
name
- The parameter name.value
- The value of the Object
parameter.public void setParameter(String name, String value)
name
- The parameter name.value
- The value of the String
parameter.public boolean getBooleanValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a boolean, a
ClassCastException
is thrown.
name
- The parameter name.
public byte getByteValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a byte, a
ClassCastException
is thrown.
name
- The parameter name.
public char getCharValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a char, a
ClassCastException
is thrown.
name
- The parameter name.
public int getIntValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not an integer, a
ClassCastException
is thrown.
name
- The parameter name.
public float getFloatValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a float, a
ClassCastException
is thrown.
name
- The parameter name.
public double getDoubleValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a double, a
ClassCastException
is thrown.
name
- The parameter name.
public short getShortValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a short, a
ClassCastException
is thrown.
name
- The parameter name.
public long getLongValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not a long, a
ClassCastException
is thrown.
name
- The parameter name.
public Object getObjectValue(String name)
IllegalArgumentException
is thrown.
name
- The parameter name.
public String getStringValue(String name)
IllegalArgumentException
is thrown.
If the parameter value is not an String, a
ClassCastException
is thrown.
name
- The parameter name.
public void clear()
public String toString()
toString
in class Object
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |