public interface EPackageBundle
extends java.lang.Iterable<org.eclipse.emf.ecore.EPackage>
EPackageBundle is a collection of EPackages that is self-contained, i.e. does not reference any
elements that are not contained in the bundle.
The EcorePackage is an implicit member of any EPackageBundle. It will not be contained in
getContents(), and will not be returned by the iterator.
| Modifier and Type | Method and Description |
|---|---|
default boolean |
containsEPackageWithNsURI(java.lang.String ePackageNsURI)
Checks if this bundle contains an
EPackage with the given namespace URI. |
java.util.List<org.eclipse.emf.ecore.EPackage> |
getContents()
Returns a list of
EPackages that are contained in this bundle. |
org.eclipse.emf.ecore.EPackage |
getEPackageByNsURI(java.lang.String ePackageNsURI)
Returns a contained
EPackage by its namespace URI. |
static EPackageBundle |
of(java.lang.Iterable<? extends org.eclipse.emf.ecore.EPackage> ePackages)
Creates and returns a new
EPackageBundle, consisting of the given EPackages. |
static EPackageBundle of(java.lang.Iterable<? extends org.eclipse.emf.ecore.EPackage> ePackages)
EPackageBundle, consisting of the given EPackages.ePackages - The EPackages to be contained in the new bundle. Must not be null, must not be empty.null.java.util.List<org.eclipse.emf.ecore.EPackage> getContents()
EPackages that are contained in this bundle.default boolean containsEPackageWithNsURI(java.lang.String ePackageNsURI)
EPackage with the given namespace URI.
This method will only check the root-level EPackages, sub-packages will not be checked.
ePackageNsURI - The namespace URI to find. Must not be null.true if this bundle contains an EPackage with the given namespace URI, otherwise
false.org.eclipse.emf.ecore.EPackage getEPackageByNsURI(java.lang.String ePackageNsURI)
EPackage by its namespace URI.
This method will only check the root-level EPackages, sub-packages will not be checked.
ePackageNsURI - The namespace URI to get the EPackage for. Must not be null.null if this bundle contains no such EPackage.