org.eclipse.jpt.jpa.core.resource.java
Interface ContainerAnnotation<T extends NestableAnnotation>

All Superinterfaces:
Annotation, AnnotationContainer<T>, JavaResourceNode, Model
All Known Subinterfaces:
AssociationOverridesAnnotation, AttributeOverridesAnnotation, JoinColumnsAnnotation, MapKeyJoinColumns2_0Annotation, NamedNativeQueriesAnnotation, NamedQueriesAnnotation, PrimaryKeyJoinColumnsAnnotation, SecondaryTablesAnnotation

public interface ContainerAnnotation<T extends NestableAnnotation>
extends Annotation, AnnotationContainer<T>

Common behavior for all "container" annotations.

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:
2.0
Version:
2.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Method Summary
 void addNestedAnnotation(int index, NestableAnnotation annotation)
          In preparation for a just-nested annotation being written to the source file, add the just-nested annotation to the container annotation at the specified index without firing change notification.
 void convertLastNestedAnnotationToStandAlone()
          Convert the container's last nested annotation to a stand-alone annotation without firing change notification.
 void nestStandAloneAnnotation(NestableAnnotation standAloneAnnotation)
          Convert the specified stand-alone annotation to an annotation nested within the container without firing change notification.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.Annotation
getAnnotationName, getAstAnnotation, isUnset, newAnnotation, removeAnnotation, restoreFrom, storeOn
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getParent, 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
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.AnnotationContainer
addNestedAnnotation, getAstAnnotation, getElementName, getNestedAnnotationName, getNestedAnnotations, getNestedAnnotationsSize, moveNestedAnnotation, removeNestedAnnotation, syncAddNestedAnnotation, syncRemoveNestedAnnotations
 

Method Detail

nestStandAloneAnnotation

void nestStandAloneAnnotation(NestableAnnotation standAloneAnnotation)
Convert the specified stand-alone annotation to an annotation nested within the container without firing change notification.


addNestedAnnotation

void addNestedAnnotation(int index,
                         NestableAnnotation annotation)
In preparation for a just-nested annotation being written to the source file, add the just-nested annotation to the container annotation at the specified index without firing change notification.

See Also:
nestStandAloneAnnotation(NestableAnnotation)

convertLastNestedAnnotationToStandAlone

void convertLastNestedAnnotationToStandAlone()
Convert the container's last nested annotation to a stand-alone annotation without firing change notification.