|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaResourcePersistentType
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 |
DECLARING_TYPE_NAME_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 |
|---|
ANNOTATIONS_COLLECTION, PERSISTABLE_PROPERTY |
| 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 the type's access type ("field" or "property"). |
java.lang.String |
getDeclaringTypeName()
Return the name of the type's "declaring type". |
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 |
hasAnyAnnotatedAttributes()
Return whether the type has any attributes that have JPA annotations on them (which can be used to infer the type's access type). |
boolean |
isAbstract()
Return whether the type is abstract. |
boolean |
isMapped()
Return whether the type is annotated with any annotations that determine whether and how the type is persisted |
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 persistable 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 |
|---|
addAnnotation, addAnnotation, annotations, annotations, annotationsSize, getAnnotation, getNameTextRange, getNonNullAnnotation, isAnnotated, isFor, isPersistable, moveAnnotation, removeAnnotation, removeAnnotation, resolveTypes, setPrimaryAnnotation |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, synchronizeWith |
| Methods inherited from interface org.eclipse.jpt.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Field Detail |
|---|
static final java.lang.String NAME_PROPERTY
static final java.lang.String QUALIFIED_NAME_PROPERTY
static final java.lang.String SUPERCLASS_QUALIFIED_NAME_PROPERTY
static final java.lang.String DECLARING_TYPE_NAME_PROPERTY
static final java.lang.String ABSTRACT_PROPERTY
static final java.lang.String ACCESS_PROPERTY
static final java.lang.String TYPES_COLLECTION
static final java.lang.String FIELDS_COLLECTION
static final java.lang.String METHODS_COLLECTION
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getQualifiedName()
java.lang.String getSuperclassQualifiedName()
java.lang.String getDeclaringTypeName()
null if the type is a top-level type.
boolean isAbstract()
AccessType getAccess()
boolean isMapped()
boolean hasAnyAnnotatedAttributes()
java.util.Iterator<JavaResourcePersistentType> types()
java.util.Iterator<JavaResourcePersistentType> allTypes()
java.util.Iterator<JavaResourcePersistentType> persistableTypes()
java.util.Iterator<JavaResourcePersistentAttribute> fields()
java.util.Iterator<JavaResourcePersistentAttribute> persistableFields()
java.util.Iterator<JavaResourcePersistentAttribute> persistableFieldsWithSpecifiedFieldAccess()
java.util.Iterator<JavaResourcePersistentAttribute> methods()
java.util.Iterator<JavaResourcePersistentAttribute> persistableProperties()
java.util.Iterator<JavaResourcePersistentAttribute> persistablePropertiesWithSpecifiedPropertyAccess()
java.util.Iterator<JavaResourcePersistentAttribute> persistableAttributes()
java.util.Iterator<JavaResourcePersistentAttribute> persistableAttributes(AccessType specifiedAccess)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||