|
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.IlrPropertyList
public class IlrPropertyList
This class is used to manage the properties attached to a ruleset or a rule.
An IlrRulesetFactory
and an IlrRuleFactory
can have
properties. They can be defined in the rule language or by API through the
methods of this class.
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 version of IBM Decision Server.
Nested Class Summary | |
---|---|
static class |
IlrPropertyList.Entry
This class is an entry of a property list. |
Constructor Summary | |
---|---|
IlrPropertyList()
Constructs a property list. |
Method Summary | |
---|---|
void |
clear()
Removes all the properties. |
boolean |
containsKey(String key)
Tests if the list contains a property. |
boolean |
containsValue(Object value)
Tests if the list contains a property of value value . |
IlrPropertyList |
copy()
Returns a property list containing the same properties as this object. |
Enumeration |
elements()
Returns an enumeration of entries in this list. |
IlrPropertyList.Entry |
get(String key)
Gets a property by name. |
Object |
get(String key,
Object def)
Returns the object value of the specified property. |
boolean |
getBoolean(String key,
boolean def)
Returns the Boolean value of the specified property. |
char |
getChar(String key,
char def)
Returns the character value of the specified property. |
double |
getDouble(String key,
double def)
Returns the double value of the specified property. |
float |
getFloat(String key,
float def)
Returns the float value of the specified property. |
ArrayList |
getHierarchicalProperties()
Returns the properties that are hierarchical properties. |
int |
getInt(String key,
int def)
Returns the integer value of the specified property. |
long |
getLong(String key,
long def)
Returns the long value of the specified property. |
String |
getString(String key,
String def)
Returns the string value of the specified property. |
boolean |
isEmpty()
Tests if the property list is empty. |
IlrPropertyList.Entry |
put(String key,
Object value)
Adds a property to the list. |
IlrPropertyList.Entry |
put(String key,
Object value,
boolean hierarchical)
Adds a property to the list. |
void |
putAll(IlrPropertyList properties)
Puts all the entries of properties in this property list. |
void |
putBoolean(String key,
boolean value)
Adds a property to the list and initializes it with a Boolean value. |
void |
putChar(String key,
char value)
Adds a property to the list and initializes it with a character value. |
void |
putDouble(String key,
double value)
Adds a property to the list and initializes it with a double value. |
void |
putFloat(String key,
float value)
Adds a property to the list and initializes it with a float value. |
void |
putInt(String key,
int value)
Adds a property to the list and initializes it with an integer value. |
void |
putLong(String key,
long value)
Adds a property to the list and initializes it with a long value. |
void |
putString(String key,
String value)
Adds a property to the list and initializes it with a string value. |
IlrPropertyList.Entry |
remove(String key)
Removes a property by name. |
int |
size()
Gets the number of properties in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrPropertyList()
Method Detail |
---|
public int size()
public boolean isEmpty()
true
if the list contains no properties.
Otherwise, it returns false
.public Enumeration elements()
public void clear()
public IlrPropertyList copy()
public void putAll(IlrPropertyList properties)
properties
in this property list.
properties
- The property list for which each entry will be added to this
list.public boolean containsKey(String key)
key
- The property name.
true
if the list contains the property. Otherwise,
it returns false
.public boolean containsValue(Object value)
value
.
value
- A property value.
true
if the list contains a property of value
value
. Otherwise, it returns false
.public IlrPropertyList.Entry remove(String key)
key
- The property name.
null
if the property
does not exist.public IlrPropertyList.Entry get(String key)
key
- The property name.
null
if the list
does not contain the property.public Object get(String key, Object def)
key
- The property name.def
- The default value to return if the property is not defined.public String getString(String key, String def)
key
- The property name.def
- The default value to return if the property is not defined.public boolean getBoolean(String key, boolean def)
key
- The property name.def
- The default value to return if the property is not defined.public char getChar(String key, char def)
key
- The property name.def
- The default value to return if the property is not defined.public int getInt(String key, int def)
key
- The property name.def
- The default value to return if the property is not defined.public long getLong(String key, long def)
key
- The property name.def
- The default value to return if the property is not defined.public float getFloat(String key, float def)
key
- The property name.def
- The default value to return if the property is not defined.public double getDouble(String key, double def)
key
- The property name.def
- The default value to return if the property is not defined.public IlrPropertyList.Entry put(String key, Object value)
key
- The property name.value
- The property value.
public IlrPropertyList.Entry put(String key, Object value, boolean hierarchical)
key
- The property name.value
- The property value.hierarchical
- true
if the property is hierarchical.
public void putString(String key, String value)
key
- The property name.value
- The property value.public void putBoolean(String key, boolean value)
key
- The property name.value
- The property value.public void putChar(String key, char value)
key
- The property name.value
- The property value.public void putInt(String key, int value)
key
- The property name.value
- The property value.public void putLong(String key, long value)
key
- The property name.value
- The property value.public void putFloat(String key, float value)
key
- The property name.value
- The property value.public void putDouble(String key, double value)
key
- The property name.value
- The property value.public ArrayList getHierarchicalProperties()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |