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

All Superinterfaces:
JavaResourceNode, Model

public interface JavaResourcePackageFragment
extends JavaResourceNode

Java package fragment 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 CLASS_FILES_COLLECTION
           
 
Method Summary
 java.util.Iterator<JavaResourceClassFile> classFiles()
          Return the package fragment's class files that contain "persistable" types.
 int classFilesSize()
          Return the size of the package fragment's class files.
 java.util.Iterator<JavaResourcePersistentType> persistedTypes()
          Return the package fragment's Java persistent types.
 
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

CLASS_FILES_COLLECTION

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

classFiles

java.util.Iterator<JavaResourceClassFile> classFiles()
Return the package fragment's class files that contain "persistable" types.


classFilesSize

int classFilesSize()
Return the size of the package fragment's class files.


persistedTypes

java.util.Iterator<JavaResourcePersistentType> persistedTypes()
Return the package fragment's Java persistent types. Return only the files that are annotated with JPA annotations.