Package org.eclipse.emf.cdo.common.model
Interface CDOPackageInfo
- 
- All Superinterfaces:
- org.eclipse.emf.common.notify.Adapter,- java.lang.Comparable<CDOPackageInfo>,- org.eclipse.emf.ecore.EPackage.Descriptor
 - All Known Subinterfaces:
- InternalCDOPackageInfo
 
 public interface CDOPackageInfo extends org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.ecore.EPackage.Descriptor, java.lang.Comparable<CDOPackageInfo> Describes a singlepackageinstance of the nested package tree strucure represented by the containingpackage unit.While the containing package unit is in the PROXYstate this package info acts as apackage descriptorin the associatedpackage 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.
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EPackagegetEPackage(boolean loadOnDemand)Returns thepackagedescribed by this package info.CDOPackageUnitgetPackageUnit()Returns the package unit containing this package info.java.lang.StringgetPackageURI()Returns the namespace URI of the package described by this package info.java.lang.StringgetParentURI()Returns the namespace URI of thesuper packageof the package described by this package info.booleanisCorePackage()Returnestrueif the package described by this package info is the Ecore model,falseoterwise.booleanisResourcePackage()Returnestrueif the package described by this package info is the Eresource model,falseoterwise.booleanisSystemPackage()Returnstrueis this package info describes one of the models Ecore, Eresource or Etypes,falseotherwise.booleanisTypePackage()Returnestrueif the package described by this package info is the Etypes model,falseoterwise.
 
- 
- 
- 
Method Detail- 
getPackageUnitCDOPackageUnit getPackageUnit() Returns the package unit containing this package info.
 - 
getPackageURIjava.lang.String getPackageURI() Returns the namespace URI of the package described by this package info.
 - 
getParentURIjava.lang.String getParentURI() Returns the namespace URI of thesuper packageof the package described by this package info.
 - 
getEPackageorg.eclipse.emf.ecore.EPackage getEPackage(boolean loadOnDemand) Returns thepackagedescribed by this package info.- Parameters:
- loadOnDemand- If- trueand the containing- package unitis not- LOADEDthe package unit is implicitely loaded. If- falseand this package unit is not- LOADED- nullis returned.
 
 - 
isCorePackageboolean isCorePackage() Returnestrueif the package described by this package info is the Ecore model,falseoterwise.
 - 
isResourcePackageboolean isResourcePackage() Returnestrueif the package described by this package info is the Eresource model,falseoterwise.
 - 
isTypePackageboolean isTypePackage() Returnestrueif the package described by this package info is the Etypes model,falseoterwise.- Since:
- 4.0
 
 - 
isSystemPackageboolean 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.
 
- 
 
-