Package org.eclipse.emf.cdo.common.model
Interface CDOPackageInfo
- All Superinterfaces:
Adapter,Comparable<CDOPackageInfo>,EPackage.Descriptor
- All Known Subinterfaces:
InternalCDOPackageInfo
Describes a single
package instance of the nested package tree strucure represented by the
containing package unit.
While the containing package unit is in the PROXY state this package info acts as
a package descriptor in the associated package registry. When that
package unit is loaded all contained package infos/descriptors are resolved and replaced by their actual packages. At
the same time the describing package info objects are attached as adapters to the resolved packages. This way the
descriptive information is available before and after loading the packages.
- 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 classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal -
Method Summary
Modifier and TypeMethodDescriptiongetEPackage(boolean loadOnDemand) Returns thepackagedescribed by this package info.Returns the package unit containing this package info.Returns the namespace URI of the package described by this package info.Returns the namespace URI of thesuper packageof the package described by this package info.booleanReturnestrueif the package described by this package info is the Ecore model,falseoterwise.booleanReturnestrueif the package described by this package info is the Eresource model,falseoterwise.booleanReturnstrueis this package info describes one of the models Ecore, Eresource or Etypes,falseotherwise.booleanReturnestrueif the package described by this package info is the Etypes model,falseoterwise.Methods inherited from interface org.eclipse.emf.common.notify.Adapter
getTarget, isAdapterForType, notifyChanged, setTargetMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.eclipse.emf.ecore.EPackage.Descriptor
getEFactory, getEPackage
-
Method Details
-
getPackageUnit
CDOPackageUnit getPackageUnit()Returns the package unit containing this package info. -
getPackageURI
String getPackageURI()Returns the namespace URI of the package described by this package info. -
getParentURI
String getParentURI()Returns the namespace URI of thesuper packageof the package described by this package info. -
getEPackage
Returns thepackagedescribed by this package info.- Parameters:
loadOnDemand- Iftrueand the containingpackage unitis notLOADEDthe package unit is implicitely loaded. Iffalseand this package unit is notLOADEDnullis returned.
-
isCorePackage
boolean isCorePackage()Returnestrueif the package described by this package info is the Ecore model,falseoterwise. -
isResourcePackage
boolean isResourcePackage()Returnestrueif the package described by this package info is the Eresource model,falseoterwise. -
isTypePackage
boolean isTypePackage()Returnestrueif the package described by this package info is the Etypes model,falseoterwise.- Since:
- 4.0
-
isSystemPackage
boolean isSystemPackage()Returnstrueis this package info describes one of the models Ecore, Eresource or Etypes,falseotherwise.Note that the models Eresource and Etypes are expected to present as generated
NATIVEmodels in all deployments.
-