Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.resource.java
Interface JavaResourceModel

All Superinterfaces:
Model
All Known Subinterfaces:
AccessAnnotation2_0, Annotation, ArrayAnnotation2_3, AssociationOverrideAnnotation, AssociationOverrideAnnotation2_0, AttributeOverrideAnnotation, BaseColumnAnnotation, BaseConvertAnnotation, BaseEnumeratedAnnotation, BaseJoinColumnAnnotation, BaseTableAnnotation, BaseTemporalAnnotation, BaseTypeConverterAnnotation, BasicAnnotation, BasicCollectionAnnotation, BasicMapAnnotation, CacheableAnnotation2_0, CacheAnnotation, ChangeTrackingAnnotation, ClassExtractorAnnotation2_1, CollectionTableAnnotation2_0, ColumnAnnotation, CompleteColumnAnnotation, CompleteJoinColumnAnnotation, ConversionValueAnnotation, ConvertAnnotation, ConverterAnnotation, CustomizerAnnotation, DbGeneratorAnnotation, DiscriminatorColumnAnnotation, DiscriminatorValueAnnotation, ElementCollectionAnnotation2_0, EmbeddableAnnotation, EmbeddedAnnotation, EmbeddedIdAnnotation, EntityAnnotation, EnumeratedAnnotation, ExistenceCheckingAnnotation, GeneratedAnnotation2_0, GeneratedValueAnnotation, GeneratorAnnotation, IdAnnotation, IdClassAnnotation, InheritanceAnnotation, JavaResourceAbstractType, JavaResourceAnnotatedElement, JavaResourceAttribute, JavaResourceClassFile, JavaResourceCompilationUnit, JavaResourceEnum, JavaResourceEnumConstant, JavaResourceField, JavaResourceMember, JavaResourceMethod, JavaResourceModel.Root, JavaResourcePackage, JavaResourcePackageFragment, JavaResourcePackageFragmentRoot, JavaResourcePackageInfoCompilationUnit, JavaResourceType, JavaResourceTypeCache, JaxbBasicSchemaComponentAnnotation, JoinColumnAnnotation, JoinFetchAnnotation, JoinTableAnnotation, LobAnnotation, ManyToManyAnnotation, ManyToManyAnnotation2_0, ManyToOneAnnotation, ManyToOneAnnotation2_0, MapKeyAnnotation, MapKeyClassAnnotation2_0, MapKeyColumnAnnotation2_0, MapKeyConvertAnnotation2_0, MapKeyEnumeratedAnnotation2_0, MapKeyJoinColumnAnnotation2_0, MapKeyTemporalAnnotation2_0, MappedSuperclassAnnotation, MapsIdAnnotation2_0, MultitenantAnnotation2_3, MutableAnnotation, NamedColumnAnnotation, NamedConverterAnnotation, NamedNativeQueryAnnotation, NamedQueryAnnotation, NamedQueryAnnotation2_0, NestableAnnotation, ObjectTypeConverterAnnotation, OneToManyAnnotation, OneToManyAnnotation2_0, OneToOneAnnotation, OneToOneAnnotation2_0, OrderByAnnotation, OrderColumnAnnotation2_0, OverrideAnnotation, OwnableRelationshipMappingAnnotation, OwningRelationshipMappingAnnotation2_0, PrimaryKeyAnnotation, PrimaryKeyJoinColumnAnnotation, PrivateOwnedAnnotation, QNameAnnotation, QueryAnnotation, QueryHintAnnotation, ReadOnlyAnnotation, ReadTransformerAnnotation, ReferenceTableAnnotation, RelationshipMappingAnnotation, RelationshipMappingAnnotation2_0, SecondaryTableAnnotation, SequenceGeneratorAnnotation, SequenceGeneratorAnnotation2_0, SingleRelationshipMappingAnnotation, StaticMetamodelAnnotation2_0, StructConverterAnnotation, StructureAnnotation2_3, TableAnnotation, TableGeneratorAnnotation, TemporalAnnotation, TenantDiscriminatorColumnAnnotation2_3, TimeOfDayAnnotation, TransformationAnnotation, TransformerAnnotation, TransientAnnotation, TypeConverterAnnotation, UniqueConstraintAnnotation, UuidGeneratorAnnotation2_4, VariableOneToOneAnnotation, VersionAnnotation, WriteTransformerAnnotation, XmlAccessorOrderAnnotation, XmlAccessorTypeAnnotation, XmlAnyAttributeAnnotation, XmlAnyElementAnnotation, XmlAttachmentRefAnnotation, XmlAttributeAnnotation, XmlCDATAAnnotation, XmlDiscriminatorNodeAnnotation, XmlDiscriminatorValueAnnotation, XmlElementAnnotation, XmlElementDeclAnnotation, XmlElementRefAnnotation, XmlElementRefsAnnotation, XmlElementsAnnotation, XmlElementWrapperAnnotation, XmlEnumAnnotation, XmlEnumValueAnnotation, XmlIDAnnotation, XmlIDREFAnnotation, XmlInlineBinaryDataAnnotation, XmlInverseReferenceAnnotation, XmlJavaTypeAdapterAnnotation, XmlJoinNodeAnnotation, XmlKeyAnnotation, XmlListAnnotation, XmlMimeTypeAnnotation, XmlMixedAnnotation, XmlNsAnnotation, XmlPathAnnotation, XmlRegistryAnnotation, XmlRootElementAnnotation, XmlSchemaAnnotation, XmlSchemaTypeAnnotation, XmlSeeAlsoAnnotation, XmlTransformationAnnotation, XmlTransientAnnotation, XmlTypeAnnotation, XmlValueAnnotation

public interface JavaResourceModel
extends Model

Common interface for Java resource nodes (source code or binary).

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

Nested Class Summary
static class JavaResourceModel.FileTransformer
           
static interface JavaResourceModel.Root
          Root of Java resource model containment hierarchy.
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceModel,IFile> FILE_TRANSFORMER
           
 
Method Summary
 IFile getFile()
          Return the Eclipse file that contains the Java resource node (typically either a Java source code file or a JAR).
 JavaResourceCompilationUnit getJavaResourceCompilationUnit()
          Return the [source] node's root (the compilation unit).
 JavaResourceModel getParent()
          Return the model's parent.
 JavaResourceModel.Root getRoot()
          Return the root of the Java resource containment hierarchy (typically either a compilation unit or a package fragment root).
 TextRange getTextRange()
          Return the [source] node's text range in the compilation unit's file.
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 

Field Detail

FILE_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceModel,IFile> FILE_TRANSFORMER
Method Detail

getParent

JavaResourceModel getParent()
Return the model's parent.


getFile

IFile getFile()
Return the Eclipse file that contains the Java resource node (typically either a Java source code file or a JAR).


getRoot

JavaResourceModel.Root getRoot()
Return the root of the Java resource containment hierarchy (typically either a compilation unit or a package fragment root).


getJavaResourceCompilationUnit

JavaResourceCompilationUnit getJavaResourceCompilationUnit()
Return the [source] node's root (the compilation unit).


getTextRange

TextRange getTextRange()
Return the [source] node's text range in the compilation unit's file.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.