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 singlepackage
instance of the nested package tree strucure represented by the containingpackage unit
.While the containing package unit is in the
PROXY
state this package info acts as apackage descriptor
in 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EPackage
getEPackage(boolean loadOnDemand)
Returns thepackage
described by this package info.CDOPackageUnit
getPackageUnit()
Returns the package unit containing this package info.java.lang.String
getPackageURI()
Returns the namespace URI of the package described by this package info.java.lang.String
getParentURI()
Returns the namespace URI of thesuper package
of the package described by this package info.boolean
isCorePackage()
Returnestrue
if the package described by this package info is the Ecore model,false
oterwise.boolean
isResourcePackage()
Returnestrue
if the package described by this package info is the Eresource model,false
oterwise.boolean
isSystemPackage()
Returnstrue
is this package info describes one of the models Ecore, Eresource or Etypes,false
otherwise.boolean
isTypePackage()
Returnestrue
if the package described by this package info is the Etypes model,false
oterwise.
-
-
-
Method Detail
-
getPackageUnit
CDOPackageUnit getPackageUnit()
Returns the package unit containing this package info.
-
getPackageURI
java.lang.String getPackageURI()
Returns the namespace URI of the package described by this package info.
-
getParentURI
java.lang.String getParentURI()
Returns the namespace URI of thesuper package
of the package described by this package info.
-
getEPackage
org.eclipse.emf.ecore.EPackage getEPackage(boolean loadOnDemand)
Returns thepackage
described by this package info.- Parameters:
loadOnDemand
- Iftrue
and the containingpackage unit
is notLOADED
the package unit is implicitely loaded. Iffalse
and this package unit is notLOADED
null
is returned.
-
isCorePackage
boolean isCorePackage()
Returnestrue
if the package described by this package info is the Ecore model,false
oterwise.
-
isResourcePackage
boolean isResourcePackage()
Returnestrue
if the package described by this package info is the Eresource model,false
oterwise.
-
isTypePackage
boolean isTypePackage()
Returnestrue
if the package described by this package info is the Etypes model,false
oterwise.- Since:
- 4.0
-
isSystemPackage
boolean isSystemPackage()
Returnstrue
is this package info describes one of the models Ecore, Eresource or Etypes,false
otherwise.Note that the models Eresource and Etypes are expected to present as generated
NATIVE
models in all deployments.
-
-