public interface CDOPackageInfo extends Adapter, EPackage.Descriptor, java.lang.Comparable<CDOPackageInfo>
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.
Adapter.Internal| Modifier and Type | Method and Description |
|---|---|
EPackage |
getEPackage(boolean loadOnDemand)
Returns the
package 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 the
super package of the package described by this
package info. |
boolean |
isCorePackage()
Returnes
true if the package described by this package info is the Ecore model,
false oterwise. |
boolean |
isResourcePackage()
Returnes
true if the package described by this package info is the Eresource model,
false oterwise. |
boolean |
isSystemPackage()
Returns
true is this package info describes one of the models Ecore, Eresource or
Etypes, false otherwise. |
boolean |
isTypePackage()
Returnes
true if the package described by this package info is the Etypes model,
false oterwise. |
getTarget, isAdapterForType, notifyChanged, setTargetgetEFactory, getEPackageCDOPackageUnit getPackageUnit()
java.lang.String getPackageURI()
java.lang.String getParentURI()
super package of the package described by this
package info.EPackage getEPackage(boolean loadOnDemand)
package described by this package info.loadOnDemand - If true and the containing package unit is not LOADED the package unit is implicitely loaded. If false and this package unit is not
LOADED null is returned.boolean isCorePackage()
true if the package described by this package info is the Ecore model,
false oterwise.boolean isResourcePackage()
true if the package described by this package info is the Eresource model,
false oterwise.boolean isTypePackage()
true if the package described by this package info is the Etypes model,
false oterwise.boolean isSystemPackage()
true 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.
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html