public class IlrPropertyList
extends java.lang.Object
implements java.io.Serializable
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
IlrPropertyList.Entry
This class is an entry of a property list.
|
| Constructor and Description |
|---|
IlrPropertyList()
Constructs a property list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the properties.
|
boolean |
containsKey(java.lang.String key)
Tests if the list contains a property.
|
boolean |
containsValue(java.lang.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.
|
java.util.Enumeration |
elements()
Returns an enumeration of entries in this list.
|
IlrPropertyList.Entry |
get(java.lang.String key)
Gets a property by name.
|
java.lang.Object |
get(java.lang.String key,
java.lang.Object def)
Returns the object value of the specified property.
|
boolean |
getBoolean(java.lang.String key,
boolean def)
Returns the Boolean value of the specified property.
|
char |
getChar(java.lang.String key,
char def)
Returns the character value of the specified property.
|
double |
getDouble(java.lang.String key,
double def)
Returns the double value of the specified property.
|
float |
getFloat(java.lang.String key,
float def)
Returns the float value of the specified property.
|
java.util.ArrayList |
getHierarchicalProperties()
Returns the properties that are hierarchical properties.
|
int |
getInt(java.lang.String key,
int def)
Returns the integer value of the specified property.
|
long |
getLong(java.lang.String key,
long def)
Returns the long value of the specified property.
|
java.lang.String |
getString(java.lang.String key,
java.lang.String def)
Returns the string value of the specified property.
|
boolean |
isEmpty()
Tests if the property list is empty.
|
IlrPropertyList.Entry |
put(java.lang.String key,
java.lang.Object value)
Adds a property to the list.
|
IlrPropertyList.Entry |
put(java.lang.String key,
java.lang.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(java.lang.String key,
boolean value)
Adds a property to the list and initializes it with a Boolean value.
|
void |
putChar(java.lang.String key,
char value)
Adds a property to the list and initializes it with a character value.
|
void |
putDouble(java.lang.String key,
double value)
Adds a property to the list and initializes it with a double value.
|
void |
putFloat(java.lang.String key,
float value)
Adds a property to the list and initializes it with a float value.
|
void |
putInt(java.lang.String key,
int value)
Adds a property to the list and initializes it with an integer value.
|
void |
putLong(java.lang.String key,
long value)
Adds a property to the list and initializes it with a long value.
|
void |
putString(java.lang.String key,
java.lang.String value)
Adds a property to the list and initializes it with a string value.
|
IlrPropertyList.Entry |
remove(java.lang.String key)
Removes a property by name.
|
int |
size()
Gets the number of properties in the list.
|
public IlrPropertyList()
public int size()
public boolean isEmpty()
true if the list contains no properties.
Otherwise, it returns false.public java.util.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(java.lang.String key)
key - The property name.true if the list contains the property. Otherwise,
it returns false.public boolean containsValue(java.lang.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(java.lang.String key)
key - The property name.null if the property
does not exist.public IlrPropertyList.Entry get(java.lang.String key)
key - The property name.null if the list
does not contain the property.public java.lang.Object get(java.lang.String key,
java.lang.Object def)
key - The property name.def - The default value to return if the property is not defined.public java.lang.String getString(java.lang.String key,
java.lang.String def)
key - The property name.def - The default value to return if the property is not defined.public boolean getBoolean(java.lang.String key,
boolean def)
key - The property name.def - The default value to return if the property is not defined.public char getChar(java.lang.String key,
char def)
key - The property name.def - The default value to return if the property is not defined.public int getInt(java.lang.String key,
int def)
key - The property name.def - The default value to return if the property is not defined.public long getLong(java.lang.String key,
long def)
key - The property name.def - The default value to return if the property is not defined.public float getFloat(java.lang.String key,
float def)
key - The property name.def - The default value to return if the property is not defined.public double getDouble(java.lang.String key,
double def)
key - The property name.def - The default value to return if the property is not defined.public IlrPropertyList.Entry put(java.lang.String key, java.lang.Object value)
key - The property name.value - The property value.public IlrPropertyList.Entry put(java.lang.String key, java.lang.Object value, boolean hierarchical)
key - The property name.value - The property value.hierarchical - true if the property is hierarchical.public void putString(java.lang.String key,
java.lang.String value)
key - The property name.value - The property value.public void putBoolean(java.lang.String key,
boolean value)
key - The property name.value - The property value.public void putChar(java.lang.String key,
char value)
key - The property name.value - The property value.public void putInt(java.lang.String key,
int value)
key - The property name.value - The property value.public void putLong(java.lang.String key,
long value)
key - The property name.value - The property value.public void putFloat(java.lang.String key,
float value)
key - The property name.value - The property value.public void putDouble(java.lang.String key,
double value)
key - The property name.value - The property value.public java.util.ArrayList getHierarchicalProperties()
© Copyright IBM Corp. 1987, 2017