|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
public abstract class ExtensibleData
A set of data that supports extension elements.
| Field Summary | |
|---|---|
protected List<Object> |
extensionElements
|
protected Map<String,Object> |
transientProperties
|
| Constructor Summary | |
|---|---|
ExtensibleData()
|
|
| Method Summary | ||
|---|---|---|
void |
addExtensionElement(Object element)
Add an extension element. |
|
protected void |
embed(ExtensibleData data)
|
|
|
findExtensionOfType(Class<E> clazz)
Finds the first extension of a specified type. |
|
|
findExtensionOfType(Class<E> clazz,
String name,
String namespace)
Finds the first extension of a specified type in the given name and namespace. |
|
|
findExtensionsOfType(Class<E> clazz)
Find the extensions of a specified type. |
|
|
findExtensionsOfType(Class<E> clazz,
String name,
String namespace)
Find the extension elements of a specified type in the given name and namespace. |
|
List<Object> |
getExtensionElements()
Custom extension elements for a conclusion. |
|
String |
getId()
A local, context-specific id for the data. |
|
Map<String,Object> |
getTransientProperties()
Get the transient properties. |
|
Object |
getTransientProperty(String name)
Get a transient (non-serialized) property. |
|
ExtensibleData |
id(String id)
Build up this object with an id. |
|
|
removeExtensionElements(Class<E> clazz)
Remove extension elements of a given type. |
|
void |
setExtensionElement(Object element)
Sets an extension element by first removing all previous elements of the same type, then adding it to the list. |
|
void |
setExtensionElements(List<Object> extensionElements)
Custom extension elements for a conclusion. |
|
void |
setId(String id)
A local, context-specific id for the data. |
|
void |
setTransientProperty(String name,
Object value)
Set a transient (non-serialized) property. |
|
String |
toString()
Provide a simple toString() method. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<Object> extensionElements
protected final Map<String,Object> transientProperties
| Constructor Detail |
|---|
public ExtensibleData()
| Method Detail |
|---|
public String getId()
public void setId(String id)
id - A local, context-specific id for the data.public ExtensibleData id(String id)
id - The id.public List<Object> getExtensionElements()
getExtensionElements in interface SupportsExtensionElementspublic void setExtensionElements(List<Object> extensionElements)
extensionElements - Custom extension elements for a conclusion.public void addExtensionElement(Object element)
addExtensionElement in interface SupportsExtensionElementselement - The extension element to add.public <E> List<E> removeExtensionElements(Class<E> clazz)
clazz - The type of extension element to remove.
public void setExtensionElement(Object element)
element - The element to set.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 <E> E findExtensionOfType(Class<E> clazz,
String name,
String namespace)
clazz - The type.name - The name of the extension element.namespace - The namespace of the extension element.
public <E> List<E> findExtensionsOfType(Class<E> clazz,
String name,
String namespace)
clazz - The type of the extension element.name - The name of the extension element.namespace - The namespace of the extension element.
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.protected void embed(ExtensibleData data)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||