public abstract class ExtensibleElement extends CommonAttributes implements SupportsExtensionElements, HasTransientProperties
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
transientProperties |
| Constructor and Description |
|---|
ExtensibleElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtensionElement(Object element)
Add an extension element.
|
<E> E |
findExtensionOfType(Class<E> clazz)
Finds the first extension of a specified type.
|
<E> List<E> |
findExtensionsOfType(Class<E> clazz)
Find the extensions of a specified type.
|
List<Object> |
getExtensionElements()
Custom extension elements.
|
Map<String,Object> |
getTransientProperties() |
Object |
getTransientProperty(String name)
Get a transient (non-serialized) property.
|
void |
setExtensionElements(List<Object> extensionElements)
Custom extension elements.
|
void |
setTransientProperty(String name,
Object value)
Set a transient (non-serialized) property.
|
getBase, getLang, setBase, setLangpublic List<Object> getExtensionElements()
getExtensionElements in interface SupportsExtensionElementspublic void setExtensionElements(List<Object> extensionElements)
extensionElements - Custom extension elements.public void addExtensionElement(Object element)
addExtensionElement in interface SupportsExtensionElementselement - The extension element to add.public <E> E findExtensionOfType(Class<E> clazz)
findExtensionOfType in interface SupportsExtensionElementsclazz - The type.public <E> List<E> findExtensionsOfType(Class<E> clazz)
findExtensionsOfType in interface SupportsExtensionElementsclazz - The type.public Map<String,Object> getTransientProperties()
getTransientProperties in interface HasTransientPropertiespublic Object getTransientProperty(String name)
getTransientProperty in interface HasTransientPropertiesname - The name of the property.public void setTransientProperty(String name, Object value)
setTransientProperty in interface HasTransientPropertiesname - the name of the property.value - the property value.Copyright © 2017. All rights reserved.