public class IlrPropertyManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IlrPropertyManager.Property
This class represents a property.
|
| Constructor and Description |
|---|
IlrPropertyManager() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getProperty(java.lang.String propertyName)
This method returns the value associated with the property.
|
java.lang.Object |
getProperty(java.lang.String propertyName,
int index)
This method returns the value associated with the given indexed property.
|
boolean |
hasProperty(java.lang.String propertyName)
This method checks if a property is present on the object.
|
boolean |
hasProperty(java.lang.String propertyName,
int index)
This method checks if an indexed property is present on the object.
|
java.util.Iterator |
properties()
This method returns an iterator on the properties registered on the object.
|
void |
removeAllProperties()
This method removes all properties stored on the object.
|
boolean |
removeProperty(java.lang.String key)
This method removes a property from the object.
|
boolean |
removeProperty(java.lang.String key,
int index)
This method removes an indexed property from the object
|
void |
setProperty(java.lang.String propertyName,
int index,
java.lang.Object value)
This method allows setting an indexed property on the object.
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
This method allows setting a property on the object.
|
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
propertyName - The property key.value - The property value.public void setProperty(java.lang.String propertyName,
int index,
java.lang.Object value)
propertyName - The property key.index - The index of the property. A -1 index is equivalent to a non-indexed property.value - The property value.public void removeAllProperties()
public boolean hasProperty(java.lang.String propertyName)
propertyName - The property key.true if the property is registered on the object, and false otherwise.public boolean hasProperty(java.lang.String propertyName,
int index)
propertyName - The property key.index - The property index. A -1 index is equivalent to a non-indexed property.true if the property is registered on the object, or false if it is not.public java.lang.Object getProperty(java.lang.String propertyName)
propertyName - The property key.null if the property is not registered on the object.public java.lang.Object getProperty(java.lang.String propertyName,
int index)
propertyName - The property key.index - The index of the property. A -1 index is equivalent to a non-indexed property.null if the property is not registered on the object.public boolean removeProperty(java.lang.String key)
key - The property key.true if the property was found, or false if it was not.public boolean removeProperty(java.lang.String key,
int index)
key - The property key.index - The property index. A -1 index is equivalent to a non-indexed property.true if the property was found, or false if it was not.public java.util.Iterator properties()
IlrPropertyManager.Property class.© Copyright IBM Corp. 1987, 2017