Dali Provisional API
Release 3.2

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

All Superinterfaces:
JavaResourceNode, Model
All Known Subinterfaces:
Access2_0Annotation, AssociationOverride2_0Annotation, AssociationOverrideAnnotation, AttributeOverrideAnnotation, BaseColumnAnnotation, BaseEnumeratedAnnotation, BaseJoinColumnAnnotation, BaseTableAnnotation, BaseTemporalAnnotation, BasicAnnotation, Cacheable2_0Annotation, CollectionTable2_0Annotation, ColumnAnnotation, CompleteColumnAnnotation, CompleteJoinColumnAnnotation, DbGeneratorAnnotation, DiscriminatorColumnAnnotation, DiscriminatorValueAnnotation, EclipseLinkArrayAnnotation2_3, EclipseLinkBaseConvertAnnotation, EclipseLinkBaseTypeConverterAnnotation, EclipseLinkBasicCollectionAnnotation, EclipseLinkBasicMapAnnotation, EclipseLinkCacheAnnotation, EclipseLinkChangeTrackingAnnotation, EclipseLinkClassExtractorAnnotation2_1, EclipseLinkConversionValueAnnotation, EclipseLinkConvertAnnotation, EclipseLinkConverterAnnotation, EclipseLinkCustomizerAnnotation, EclipseLinkExistenceCheckingAnnotation, EclipseLinkJoinFetchAnnotation, EclipseLinkMapKeyConvertAnnotation2_0, EclipseLinkMultitenantAnnotation2_3, EclipseLinkMutableAnnotation, EclipseLinkNamedConverterAnnotation, EclipseLinkObjectTypeConverterAnnotation, EclipseLinkPrimaryKeyAnnotation, EclipseLinkPrivateOwnedAnnotation, EclipseLinkReadOnlyAnnotation, EclipseLinkReadTransformerAnnotation, EclipseLinkStructConverterAnnotation, EclipseLinkStructureAnnotation2_3, EclipseLinkTenantDiscriminatorColumnAnnotation2_3, EclipseLinkTimeOfDayAnnotation, EclipseLinkTransformationAnnotation, EclipseLinkTransformerAnnotation, EclipseLinkTypeConverterAnnotation, EclipseLinkUuidGeneratorAnnotation2_4, EclipseLinkVariableOneToOneAnnotation, EclipseLinkWriteTransformerAnnotation, ElementCollection2_0Annotation, EmbeddableAnnotation, EmbeddedAnnotation, EmbeddedIdAnnotation, EntityAnnotation, EnumeratedAnnotation, GeneratedAnnotation, GeneratedValueAnnotation, GeneratorAnnotation, IdAnnotation, IdClassAnnotation, InheritanceAnnotation, JaxbBasicSchemaComponentAnnotation, JoinColumnAnnotation, JoinTableAnnotation, LobAnnotation, ManyToMany2_0Annotation, ManyToManyAnnotation, ManyToOne2_0Annotation, ManyToOneAnnotation, MapKeyAnnotation, MapKeyClass2_0Annotation, MapKeyColumn2_0Annotation, MapKeyEnumerated2_0Annotation, MapKeyJoinColumn2_0Annotation, MapKeyTemporal2_0Annotation, MappedSuperclassAnnotation, MapsId2_0Annotation, NamedColumnAnnotation, NamedNativeQueryAnnotation, NamedQuery2_0Annotation, NamedQueryAnnotation, NestableAnnotation, OneToMany2_0Annotation, OneToManyAnnotation, OneToOne2_0Annotation, OneToOneAnnotation, OrderByAnnotation, OrderColumn2_0Annotation, OverrideAnnotation, OwnableRelationshipMappingAnnotation, OwningRelationshipMapping2_0Annotation, PrimaryKeyJoinColumnAnnotation, QNameAnnotation, QueryAnnotation, QueryHintAnnotation, ReferenceTableAnnotation, RelationshipMapping2_0Annotation, RelationshipMappingAnnotation, SecondaryTableAnnotation, SequenceGenerator2_0Annotation, SequenceGeneratorAnnotation, SingleRelationshipMappingAnnotation, StaticMetamodelAnnotation, TableAnnotation, TableGeneratorAnnotation, TemporalAnnotation, TransientAnnotation, UniqueConstraintAnnotation, VersionAnnotation, XmlAccessorOrderAnnotation, XmlAccessorTypeAnnotation, XmlAnyAttributeAnnotation, XmlAnyElementAnnotation, XmlAttachmentRefAnnotation, XmlAttributeAnnotation, XmlCDATAAnnotation, XmlDiscriminatorNodeAnnotation, XmlDiscriminatorValueAnnotation, XmlElementAnnotation, XmlElementDeclAnnotation, XmlElementRefAnnotation, XmlElementRefsAnnotation, XmlElementsAnnotation, XmlElementWrapperAnnotation, XmlEnumAnnotation, XmlEnumValueAnnotation, XmlIDAnnotation, XmlIDREFAnnotation, XmlInlineBinaryDataAnnotation, XmlInverseReferenceAnnotation, XmlJavaTypeAdapterAnnotation, XmlJoinNodeAnnotation, XmlKeyAnnotation, XmlListAnnotation, XmlMimeTypeAnnotation, XmlMixedAnnotation, XmlNsAnnotation, XmlPathAnnotation, 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode
JavaResourceNode.FileTransformer, JavaResourceNode.Root
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode
FILE_TRANSFORMER
 
Method Summary
 String getAnnotationName()
          Return the annotation's fully qualified name, as opposed to the value of the annotation's 'name' element.
 Annotation getAstAnnotation(CompilationUnit astRoot)
          Return the corresponding JDT DOM annotation from the specified AST compilation unit.
 void initialize(Annotation astAnnotation)
          Initialize the [source] node from the specified AST annotation.
 void initialize(CompilationUnit astRoot)
          Initialize the [source] node from the specified AST.
 boolean isUnset()
          Return whether all the annotation's member values are null; implying the annotation can be removed if it has no semantic value as a marker annotation.
 void newAnnotation()
          Create and add the corresponding Java annotation to the JDT DOM.
 void removeAnnotation()
          Remove the corresponding Java annotation from the JDT DOM.
 void synchronizeWith(Annotation astAnnotation)
          Synchronize the [source] node with the specified AST annotation.
 void synchronizeWith(CompilationUnit astRoot)
          Synchronize the [source] node with the specified AST.
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 

Method Detail

initialize

void initialize(CompilationUnit astRoot)
Initialize the [source] node from the specified AST.


synchronizeWith

void synchronizeWith(CompilationUnit astRoot)
Synchronize the [source] node with the specified AST.


initialize

void initialize(Annotation astAnnotation)
Initialize the [source] node from the specified AST annotation.


synchronizeWith

void synchronizeWith(Annotation astAnnotation)
Synchronize the [source] node with the specified AST annotation.


getAnnotationName

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


getAstAnnotation

Annotation getAstAnnotation(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.
Internal to the java resource model.

See Also:
JavaResourceAnnotatedElement.addAnnotation(String)

removeAnnotation

void removeAnnotation()
Remove the corresponding Java annotation from the JDT DOM.
Internal to the java resource model.

See Also:
JavaResourceAnnotatedElement.removeAnnotation(String)

isUnset

boolean isUnset()
Return whether all the annotation's member values are null; implying the annotation can be removed if it has no semantic value as a marker annotation.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.