org.eclipse.jpt.core.resource.java
Interface JavaResourcePersistentType

All Superinterfaces:
JavaResourceNode, JavaResourcePersistentMember, Model

public interface JavaResourcePersistentType
extends JavaResourcePersistentMember

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.


Field Summary
static java.lang.String ABSTRACT_PROPERTY
           
static java.lang.String ACCESS_PROPERTY
           
static java.lang.String FIELDS_COLLECTION
           
static java.lang.String METHODS_COLLECTION
           
static java.lang.String NAME_PROPERTY
           
static java.lang.String QUALIFIED_NAME_PROPERTY
           
static java.lang.String SUPER_CLASS_QUALIFIED_NAME_PROPERTY
           
static java.lang.String TYPES_COLLECTION
           
 
Fields inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
MAPPING_ANNOTATIONS_COLLECTION, PERSISTABLE_PROPERTY, SUPPORTING_ANNOTATIONS_COLLECTION
 
Method Summary
 java.util.Iterator<JavaResourcePersistentType> allPersistableTypes()
          Return all the persistable types; the type itself, its children, its grandchildren, etc.
 java.util.Iterator<JavaResourcePersistentType> allTypes()
          Return all the types; the type itself, its children, its grandchildren, etc.
 java.util.Iterator<JavaResourcePersistentAttribute> fields()
          Return the type's fields.
 AccessType getAccess()
          Return tye type's access type ("field" or "property").
 java.lang.String getName()
          Return the unqualified (short) type name.
 java.lang.String getQualifiedName()
          Return the fully qualified type name.
 java.lang.String getSuperClassQualifiedName()
          Return the fully qualified name of the type's super class.
 boolean hasAnyAttributeAnnotations()
          Return whether the type has any attributes that have JPA annotations on them.
 boolean isAbstract()
          Return whether the type is abstract.
 java.util.Iterator<JavaResourcePersistentAttribute> methods()
          Return the type's methods.
 java.util.Iterator<JavaResourcePersistentAttribute> persistableAttributes()
          Return the type's persistable fields and properties.
 java.util.Iterator<JavaResourcePersistentAttribute> persistableFields()
          Return the type's persistable fields.
 java.util.Iterator<JavaResourcePersistentAttribute> persistableProperties()
          Return the type's persistable properties.
 java.util.Iterator<JavaResourcePersistentType> persistableTypes()
          Return the immediately nested persistable types.
 java.util.Iterator<JavaResourcePersistentType> types()
          Return the immediately nested types (children).
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
addSupportingAnnotation, addSupportingAnnotation, getMappingAnnotation, getMappingAnnotation, getNameTextRange, getNonNullSupportingAnnotation, getNullMappingAnnotation, getSupportingAnnotation, isFor, isFor, isPersistable, isPersisted, mappingAnnotations, mappingAnnotationsSize, moveSupportingAnnotation, removeSupportingAnnotation, removeSupportingAnnotation, resolveTypes, setMappingAnnotation, supportingAnnotations, supportingAnnotations, supportingAnnotationsSize
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJpaCompilationUnit, getTextRange, initialize, update
 
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
 

Field Detail

NAME_PROPERTY

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

QUALIFIED_NAME_PROPERTY

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

SUPER_CLASS_QUALIFIED_NAME_PROPERTY

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

ABSTRACT_PROPERTY

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

ACCESS_PROPERTY

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

TYPES_COLLECTION

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

FIELDS_COLLECTION

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

METHODS_COLLECTION

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

getName

java.lang.String getName()
Return the unqualified (short) type name.


getQualifiedName

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


getSuperClassQualifiedName

java.lang.String getSuperClassQualifiedName()
Return the fully qualified name of the type's super class.


isAbstract

boolean isAbstract()
Return whether the type is abstract.


getAccess

AccessType getAccess()
Return tye type's access type ("field" or "property").


hasAnyAttributeAnnotations

boolean hasAnyAttributeAnnotations()
Return whether the type has any attributes that have JPA annotations on them.


types

java.util.Iterator<JavaResourcePersistentType> types()
Return the immediately nested types (children).


allTypes

java.util.Iterator<JavaResourcePersistentType> allTypes()
Return all the types; the type itself, its children, its grandchildren, etc.


persistableTypes

java.util.Iterator<JavaResourcePersistentType> persistableTypes()
Return the immediately nested persistable types.


allPersistableTypes

java.util.Iterator<JavaResourcePersistentType> allPersistableTypes()
Return all the persistable types; the type itself, its children, its grandchildren, etc.


fields

java.util.Iterator<JavaResourcePersistentAttribute> fields()
Return the type's fields.


persistableFields

java.util.Iterator<JavaResourcePersistentAttribute> persistableFields()
Return the type's persistable fields.


methods

java.util.Iterator<JavaResourcePersistentAttribute> methods()
Return the type's methods.


persistableProperties

java.util.Iterator<JavaResourcePersistentAttribute> persistableProperties()
Return the type's persistable properties.


persistableAttributes

java.util.Iterator<JavaResourcePersistentAttribute> persistableAttributes()
Return the type's persistable fields and properties.