public class DefinedAnnotation extends Object implements de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable, AnnotationDescriptor<Object>
Constructor and Description |
---|
DefinedAnnotation(String id,
Class<AnnotationDescriptor<?>> descriptor)
Create a defined annotation.
|
Modifier and Type | Method and Description |
---|---|
Object |
create()
Create a new annotation object.
|
Object |
fromDOM(Element fragment,
Void context)
Load the complex value from a document object model.
|
Class<Void> |
getContextType() |
String |
getId() |
Element |
toDOM(Object annotation)
Store the complex value to a document object model.
|
public DefinedAnnotation(String id, Class<AnnotationDescriptor<?>> descriptor) throws InstantiationException, IllegalAccessException
id
- the associated annotation type identifierdescriptor
- the annotation descriptor classIllegalAccessException
- if access to the default constructor of
the descriptor class is not allowedInstantiationException
- if the descriptor object cannot be createdpublic Object create()
AnnotationDescriptor
create
in interface AnnotationDescriptor<Object>
public Object fromDOM(Element fragment, Void context)
ComplexValueType
fromDOM
in interface ComplexValueType<Object,Void>
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,Void>
annotation
- the complex value to savepublic String getId()
getId
in interface de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable
public Class<Void> getContextType()
getContextType
in interface ComplexValueType<Object,Void>
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a