public class ComplexValueDefinition extends Object implements de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable, ComplexValueType<Object,Object>
Constructor and Description |
---|
ComplexValueDefinition(String id,
QName elementName,
Class<ComplexValueType<?,?>> descriptor,
Class<?> valueType)
Create a complex value definition.
|
Modifier and Type | Method and Description |
---|---|
Object |
fromDOM(Element fragment,
Object context)
Load the complex value from a document object model.
|
Class<Object> |
getContextType() |
QName |
getElementName()
Get the name of the element representing the complex value.
|
String |
getId() |
Class<?> |
getValueType()
Get the associated complex value type.
|
Element |
toDOM(Object annotation)
Store the complex value to a document object model.
|
public ComplexValueDefinition(String id, QName elementName, Class<ComplexValueType<?,?>> descriptor, Class<?> valueType) throws InstantiationException, IllegalAccessException
id
- complex value identifierelementName
- the qualified name of the XML element representing the
complex valuedescriptor
- the complex value descriptorvalueType
- the complex value typeIllegalAccessException
- if access to the default constructor of
the descriptor class is not allowedInstantiationException
- if the descriptor object cannot be createdpublic Object fromDOM(Element fragment, Object context)
ComplexValueType
fromDOM
in interface ComplexValueType<Object,Object>
fragment
- the complex value fragment root elementcontext
- the complex value context, may be null
if
unavailablepublic Element toDOM(Object annotation)
ComplexValueType
toDOM
in interface ComplexValueType<Object,Object>
annotation
- the complex value to savepublic String getId()
getId
in interface de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable
public QName getElementName()
public Class<?> getValueType()
public Class<Object> getContextType()
getContextType
in interface ComplexValueType<Object,Object>
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a