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

All Superinterfaces:
Annotation, JavaResourceNode, Model
All Known Subinterfaces:
AssociationOverridesAnnotation, AttributeOverridesAnnotation, JoinColumnsAnnotation, NamedNativeQueriesAnnotation, NamedQueriesAnnotation, PrimaryKeyJoinColumns, SecondaryTablesAnnotation

public interface ContainerAnnotation<T extends NestableAnnotation>
extends Annotation

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.


Method Summary
 T add(int index)
           
 T addInternal(int index)
          Add directly to the List without firing change notification.
 java.lang.String getElementName()
          Return the element name of the nestable annotation when it is nested withing the container annotatio as a member value pai
 java.lang.String getNestableAnnotationName()
          Return the fully qualified nestable annotation name.
 int indexOf(T nestedAnnotation)
           
 void move(int targetIndex, int sourceIndex)
           
 void moveInternal(int targetIndex, int sourceIndex)
          Move in the List without firing change notification.
 T nestedAnnotationAt(int index)
           
 T nestedAnnotationFor(org.eclipse.jdt.core.dom.Annotation jdtAnnotation)
           
 java.util.ListIterator<T> nestedAnnotations()
           
 int nestedAnnotationsSize()
           
 void remove(int index)
           
 void remove(T nestedAnnotation)
           
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.Annotation
getAnnotationName, getJdtAnnotation, newAnnotation, removeAnnotation
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getJpaCompilationUnit, getResourceModel, getTextRange, initialize, updateFromJava
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 

Method Detail

getNestableAnnotationName

java.lang.String getNestableAnnotationName()
Return the fully qualified nestable annotation name.


getElementName

java.lang.String getElementName()
Return the element name of the nestable annotation when it is nested withing the container annotatio as a member value pai


nestedAnnotations

java.util.ListIterator<T> nestedAnnotations()

nestedAnnotationsSize

int nestedAnnotationsSize()

nestedAnnotationAt

T nestedAnnotationAt(int index)

nestedAnnotationFor

T nestedAnnotationFor(org.eclipse.jdt.core.dom.Annotation jdtAnnotation)

indexOf

int indexOf(T nestedAnnotation)

add

T add(int index)

addInternal

T addInternal(int index)
Add directly to the List without firing change notification.


remove

void remove(T nestedAnnotation)

remove

void remove(int index)

moveInternal

void moveInternal(int targetIndex,
                  int sourceIndex)
Move in the List without firing change notification.


move

void move(int targetIndex,
          int sourceIndex)