public interface IlrDecorableElement
extends java.lang.Cloneable
String property keys containing substring INSTANCE and/or TRANSIENT
properties have specific behaviors. INSTANCE properties are not cloned and
not added when using addProperties(java.util.Map). TRANSIENT properties are
not serialized. VOLATILE properties are transient and instance properties
that are explicitly cleared by a call to clearVolatileProperties().
IlrDecorableElementImpl| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INSTANCE
Prefix of properties dropped by clone() and addProperties().
|
static java.lang.String |
TRANSIENT
Prefix for transient properties (not serialized).
|
static java.lang.String |
VOLATILE
Prefix for volatile properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(java.util.Map properties)
Add all properties from the map to the decorable element except all
properties tagged
INSTANCE. |
void |
clearProperties()
Remove all property values from the decorable element.
|
void |
clearVolatileProperties()
Remove all volatile property values from the decorable element.
|
java.lang.Object |
clone() |
java.util.Map |
getProperties() |
java.lang.Object |
getProperty(java.lang.Object key) |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Define a property value related to a property key.
|
static final java.lang.String INSTANCE
static final java.lang.String TRANSIENT
static final java.lang.String VOLATILE
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionINSTANCE are not copied.java.lang.Object getProperty(java.lang.Object key)
key - The property key.void setProperty(java.lang.Object key,
java.lang.Object value)
key - The property key.value - The property value.java.util.Map getProperties()
void addProperties(java.util.Map properties)
INSTANCE.properties - void clearProperties()
void clearVolatileProperties()
© Copyright IBM Corp. 1987, 2017