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

All Superinterfaces:
JavaResourceNode, JavaResourcePersistentMember, Model

public interface JavaResourcePersistentType
extends JavaResourcePersistentMember

Java source code or binary persistent type. 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.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
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 SUPERCLASS_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> 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 superclass.
 boolean hasAnyAttributePersistenceAnnotations()
          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> persistableAttributes(AccessType specifiedAccess)
          Return the persitable properties and/or fields given the non-null specified access type
 java.util.Iterator<JavaResourcePersistentAttribute> persistableFields()
          Return the type's persistable fields.
 java.util.Iterator<JavaResourcePersistentAttribute> persistableFieldsWithSpecifiedFieldAccess()
          A convenience method that returns the persistableFields that also have the Access annotation with a value of FIELD
 java.util.Iterator<JavaResourcePersistentAttribute> persistableProperties()
          Return the type's persistable properties.
 java.util.Iterator<JavaResourcePersistentAttribute> persistablePropertiesWithSpecifiedPropertyAccess()
          A convenience method that returns the persistableProperties that also have the Access annotation with a value of PROPERTY
 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, getSupportingAnnotation, 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, getJavaResourceCompilationUnit, getRoot, 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

SUPERCLASS_QUALIFIED_NAME_PROPERTY

static final java.lang.String SUPERCLASS_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 superclass.


isAbstract

boolean isAbstract()
Return whether the type is abstract.


getAccess

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


hasAnyAttributePersistenceAnnotations

boolean hasAnyAttributePersistenceAnnotations()
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.


fields

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


persistableFields

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


persistableFieldsWithSpecifiedFieldAccess

java.util.Iterator<JavaResourcePersistentAttribute> persistableFieldsWithSpecifiedFieldAccess()
A convenience method that returns the persistableFields that also have the Access annotation with a value of FIELD


methods

java.util.Iterator<JavaResourcePersistentAttribute> methods()
Return the type's methods. This returns *all* methods from the JDT Type


persistableProperties

java.util.Iterator<JavaResourcePersistentAttribute> persistableProperties()
Return the type's persistable properties. This returns only the getter methods that match the JavaBeans criteria for JPA, hence the name properties instead of methods


persistablePropertiesWithSpecifiedPropertyAccess

java.util.Iterator<JavaResourcePersistentAttribute> persistablePropertiesWithSpecifiedPropertyAccess()
A convenience method that returns the persistableProperties that also have the Access annotation with a value of PROPERTY


persistableAttributes

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


persistableAttributes

java.util.Iterator<JavaResourcePersistentAttribute> persistableAttributes(AccessType specifiedAccess)
Return the persitable properties and/or fields given the non-null specified access type