Package org.eclipse.emf.cdo.common.model
Interface CDOPackageUnit
- All Superinterfaces:
CDOTimeProvider,Comparable<CDOPackageUnit>
- All Known Subinterfaces:
InternalCDOPackageUnit
Represents a tree structure of nested
packages that are registered with a package registry and that can only be serialized as a whole.
A package unit is the granule of committing or lazy loading packages. It contains some overall information like
type, state, commit time and nested package
info objects that describe all the nested packages.
- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes the possible states apackage unitmay be in during its lifecycle.static enum -
Method Summary
Modifier and TypeMethodDescriptionEPackage[]getEPackages(boolean loadOnDemand) Returns allpackagesof the nested package tree structure described by this package unit in depth-first traversal order.getID()Returns the ID of this package unit.Returns the type of this package unit as it was at the time it was originally committed by a client.getPackageInfo(String packageURI) Returns thepackage infoobject that describes thepackagewith the given namespace URI, ornullif this package unit does not contain a package with this URI.Returns allpackage infoobjects of the nested package tree structure described by this package unit in depth-first traversal order.Returns the package registry this package unit is managed by.getState()Returns the current state of this package unit.longReturns the time this package unit was originally committed.Returns thepackage infoobject that describes the top levelpackageof the nested package tree structure described by this package unit.getType()Returns the current type of this package unit.booleanReturnstrueis this package unit describes the model Eresource ,falseotherwise.booleanisSystem()Returnstrueis this package unit describes one of the models Ecore, Eresource or Etypes,falseotherwise.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getPackageRegistry
CDOPackageRegistry getPackageRegistry()Returns the package registry this package unit is managed by. -
getID
String getID()Returns the ID of this package unit.Same as
getTopLevelPackageInfo().CDOPackageInfo.getPackageURI(). -
getState
CDOPackageUnit.State getState()Returns the current state of this package unit. -
getType
CDOPackageUnit.Type getType()Returns the current type of this package unit. -
getOriginalType
CDOPackageUnit.Type getOriginalType()Returns the type of this package unit as it was at the time it was originally committed by a client. -
getTimeStamp
long getTimeStamp()Returns the time this package unit was originally committed.- Specified by:
getTimeStampin interfaceCDOTimeProvider
-
getTopLevelPackageInfo
CDOPackageInfo getTopLevelPackageInfo()Returns thepackage infoobject that describes the top levelpackageof the nested package tree structure described by this package unit. -
getPackageInfo
Returns thepackage infoobject that describes thepackagewith the given namespace URI, ornullif this package unit does not contain a package with this URI. -
getPackageInfos
CDOPackageInfo[] getPackageInfos()Returns allpackage infoobjects of the nested package tree structure described by this package unit in depth-first traversal order. -
getEPackages
Returns allpackagesof the nested package tree structure described by this package unit in depth-first traversal order. -
isSystem
boolean isSystem()Returnstrueis this package unit describes one of the models Ecore, Eresource or Etypes,falseotherwise.Note that the models Ecore, Eresource and Etypes are expected to be present as generated
NATIVEmodels in all deployments. -
isResource
boolean isResource()Returnstrueis this package unit describes the model Eresource ,falseotherwise.Note that the model Eresource is expected to bepresent as generated
NATIVEmodels in all deployments.- Since:
- 4.0
-