org.eclipse.jpt.jaxb.core.resource.java
Interface Annotation

All Superinterfaces:
JavaResourceNode, Model
All Known Subinterfaces:
JaxbContainmentAnnotation, NestableAnnotation, XmlAccessorOrderAnnotation, XmlAccessorTypeAnnotation, XmlAnyAttributeAnnotation, XmlAnyElementAnnotation, XmlAttachmentRefAnnotation, XmlAttributeAnnotation, XmlElementAnnotation, XmlElementDeclAnnotation, XmlElementRefAnnotation, XmlElementRefsAnnotation, XmlElementsAnnotation, XmlElementWrapperAnnotation, XmlEnumAnnotation, XmlEnumValueAnnotation, XmlIDAnnotation, XmlIDREFAnnotation, XmlInlineBinaryDataAnnotation, XmlInverseReferenceAnnotation, XmlJavaTypeAdapterAnnotation, XmlListAnnotation, XmlMimeTypeAnnotation, XmlMixedAnnotation, XmlNsAnnotation, XmlRegistryAnnotation, XmlRootElementAnnotation, XmlSchemaAnnotation, XmlSchemaTypeAnnotation, XmlSeeAlsoAnnotation, XmlTransformationAnnotation, XmlTransientAnnotation, XmlTypeAnnotation, XmlValueAnnotation

public interface Annotation
extends JavaResourceNode

Common Java resource annotation behavior Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.0
Version:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Method Summary
 java.lang.String getAnnotationName()
          Return the annotation's fully qualified name, as opposed to the value of the annotation's 'name' element.
 org.eclipse.jdt.core.dom.Annotation getAstAnnotation(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Return the corresponding JDT DOM annotation from the specified AST compilation unit.
 void newAnnotation()
          Create and add the corresponding Java annotation to the JDT DOM.
 void removeAnnotation()
          Remove the corresponding Java annotation from the JDT DOM.
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, synchronizeWith
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Method Detail

getAnnotationName

java.lang.String getAnnotationName()
Return the annotation's fully qualified name, as opposed to the value of the annotation's 'name' element. For example:

See Also:
JAXB

getAstAnnotation

org.eclipse.jdt.core.dom.Annotation getAstAnnotation(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the corresponding JDT DOM annotation from the specified AST compilation unit.


newAnnotation

void newAnnotation()
Create and add the corresponding Java annotation to the JDT DOM.


removeAnnotation

void removeAnnotation()
Remove the corresponding Java annotation from the JDT DOM.