public interface IlrBaseElement extends IlrNotifier, java.io.Serializable
An IlrBaseElement element has properties, can be visited using an instance of
IlrVocabularyVisitor, and can be deleted.
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IlrVocabularyVisitor visitor)
Accepts a vocabulary visitor.
|
void |
clearInstanceProperties()
Removes all instance properties of this element.
|
void |
clearProperties()
Removes all the properties of this element.
|
void |
clearVolatileProperties()
Removes all volatile properties of this element.
|
void |
delete()
Deletes this element.
|
java.util.Map |
getProperties()
Gets all the properties of this element as a
java.util.Map. |
java.lang.Object |
getProperty(java.lang.String key)
Gets a property by its key from the list of properties of this element.
|
boolean |
hasProperty(java.lang.String key)
Tests if this element contains a property with the specified key.
|
boolean |
isDeleted()
Tests if this element is deleted.
|
void |
removeProperty(java.lang.String key)
Removes a single property by its key.
|
void |
setProperties(java.util.Map props)
Adds a set of properties specified as a
java.util.Map. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Adds a valued property to this element.
|
addListener, getListeners, notify, removeListenerjava.lang.Object getProperty(java.lang.String key)
key - The key of the property.null if the property does not exist
for this element.void setProperty(java.lang.String key,
java.lang.Object value)
key - The key of the property.value - The value of the property.void setProperties(java.util.Map props)
java.util.Map.
Existing properties with the same key are overwritten. The others are kept.props - The map of properties to add.java.util.Map getProperties()
java.util.Map.void clearProperties()
void clearInstanceProperties()
void clearVolatileProperties()
void removeProperty(java.lang.String key)
key - The key of the property to remove.boolean hasProperty(java.lang.String key)
key - The key of the property.true if this element contains a property with that key.void delete()
boolean isDeleted()
true if the element is deleted.void accept(IlrVocabularyVisitor visitor)
visitor - The IlrVocabularyVisitor instance.© Copyright IBM Corp. 1987, 2017