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

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceMember, JavaResourceNode, Model
All Known Subinterfaces:
JavaResourceEnum, JavaResourceType

public interface JavaResourceAbstractType
extends JavaResourceMember

Java source code or binary type. This corresponds to a AbstractTypeDeclaration (which is why the name is somewhat wonky.)

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
static class JavaResourceAbstractType.Kind
          The kind of java type.
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String DECLARING_TYPE_NAME_PROPERTY
           
static java.lang.String ENUMS_COLLECTION
           
static java.lang.String MEMBER_TYPE_PROPERTY
           
static java.lang.String NAME_PROPERTY
          Property change String for the unqualified (short) type name.
static java.lang.String PACKAGE_NAME_PROPERTY
           
static java.lang.String QUALIFIED_NAME_PROPERTY
           
static java.lang.String TYPES_COLLECTION
           
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceMember
FINAL_PROPERTY, PUBLIC_PROPERTY, STATIC_PROPERTY, TRANSIENT_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAnnotatedElement
ANNOTATIONS_COLLECTION, NESTABLE_ANNOTATIONS_COLLECTION
 
Method Summary
 java.lang.Iterable<JavaResourceEnum> getAllEnums()
          Return all the enums; the enum itself, its children, its grandchildren, etc.
 java.lang.Iterable<JavaResourceType> getAllTypes()
          Return all the types; the type itself, its children, its grandchildren, etc.
 java.lang.String getDeclaringTypeName()
          Return the name of the type's "declaring type".
 java.lang.Iterable<JavaResourceEnum> getEnums()
          Return the immediately nested enums (children).
 JavaResourceAbstractType.Kind getKind()
          Return the kind of java type this corresponds to
 java.lang.String getPackageName()
          Return the package name.
 java.lang.String getQualifiedName()
          Return the fully qualified type name.
 java.lang.Iterable<JavaResourceType> getTypes()
          Return the immediately nested types (children).
 boolean isIn(org.eclipse.jdt.core.IPackageFragment packageFragment)
           
 boolean isMapped()
          Return whether the type is annotated with any annotations that determine whether and how the type is persisted
 boolean isMemberType()
          Return whether the type is a member type.
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceMember
getName, isFinal, isFor, isPublic, isStatic, isTransient, resolveTypes, setPrimaryAnnotation
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.JavaResourceAnnotatedElement
addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotationsSize, getAnnotationsSize, getNameTextRange, getNonNullAnnotation, isAnnotated, moveAnnotation, removeAnnotation, removeAnnotation
 
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
 

Field Detail

NAME_PROPERTY

static final java.lang.String NAME_PROPERTY
Property change String for the unqualified (short) type name.

See Also:
JavaResourceMember.getName(), Constant Field Values

QUALIFIED_NAME_PROPERTY

static final java.lang.String QUALIFIED_NAME_PROPERTY
See Also:
Constant Field Values

PACKAGE_NAME_PROPERTY

static final java.lang.String PACKAGE_NAME_PROPERTY
See Also:
Constant Field Values

DECLARING_TYPE_NAME_PROPERTY

static final java.lang.String DECLARING_TYPE_NAME_PROPERTY
See Also:
Constant Field Values

MEMBER_TYPE_PROPERTY

static final java.lang.String MEMBER_TYPE_PROPERTY
See Also:
Constant Field Values

TYPES_COLLECTION

static final java.lang.String TYPES_COLLECTION
See Also:
Constant Field Values

ENUMS_COLLECTION

static final java.lang.String ENUMS_COLLECTION
See Also:
Constant Field Values
Method Detail

getQualifiedName

java.lang.String getQualifiedName()
Return the fully qualified type name.


getPackageName

java.lang.String getPackageName()
Return the package name.


getDeclaringTypeName

java.lang.String getDeclaringTypeName()
Return the name of the type's "declaring type". Return null if the type is a top-level type.


isMemberType

boolean isMemberType()
Return whether the type is a member type.


isMapped

boolean isMapped()
Return whether the type is annotated with any annotations that determine whether and how the type is persisted


isIn

boolean isIn(org.eclipse.jdt.core.IPackageFragment packageFragment)

getTypes

java.lang.Iterable<JavaResourceType> getTypes()
Return the immediately nested types (children).


getAllTypes

java.lang.Iterable<JavaResourceType> getAllTypes()
Return all the types; the type itself, its children, its grandchildren, etc.


getEnums

java.lang.Iterable<JavaResourceEnum> getEnums()
Return the immediately nested enums (children).


getAllEnums

java.lang.Iterable<JavaResourceEnum> getAllEnums()
Return all the enums; the enum itself, its children, its grandchildren, etc.


getKind

JavaResourceAbstractType.Kind getKind()
Return the kind of java type this corresponds to