|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.atom.CommonAttributes
org.gedcomx.atom.ExtensibleElement
public abstract class ExtensibleElement
| Field Summary | |
|---|---|
protected Map<String,Object> |
transientProperties
|
| Constructor Summary | |
|---|---|
ExtensibleElement()
|
|
| Method Summary | ||
|---|---|---|
void |
addExtensionElement(Object element)
Add an extension element. |
|
|
findExtensionOfType(Class<E> clazz)
Finds the first extension of a specified type. |
|
|
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. |
|
| Methods inherited from class org.gedcomx.atom.CommonAttributes |
|---|
getBase, getLang, setBase, setLang |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,Object> transientProperties
| Constructor Detail |
|---|
public ExtensibleElement()
| Method Detail |
|---|
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||