public static class ProxyPackage.Registry extends Object
ProxyPackage
.Modifier and Type | Method and Description |
---|---|
void |
clean()
Cleans the registry.
|
ProxyPackage |
get(org.eclipse.emf.ecore.EPackage ePackage)
Returns a
ProxyPackage from the specified ePackage . |
ProxyPackage |
getByPrefix(String prefix)
Returns a
ProxyPackage identified by the given prefix , or null if no namespace is
registered with this prefix . |
ProxyPackage |
getByUri(String uri)
Returns a
ProxyPackage identified by the given uri , or null if no namespace is
registered with this uri . |
static ProxyPackage.Registry |
getInstance()
Returns the instance of this class.
|
ProxyPackage |
register(org.eclipse.emf.ecore.EPackage ePackage)
Registers a new
ProxyPackage from the given ePackage . |
ProxyPackage |
register(String prefix,
String uri)
|
@Nonnull public static ProxyPackage.Registry getInstance()
@Nonnull public ProxyPackage get(org.eclipse.emf.ecore.EPackage ePackage)
ProxyPackage
from the specified ePackage
.ePackage
- the EPackage
associated with the namespacepublic ProxyPackage getByPrefix(@Nullable String prefix)
ProxyPackage
identified by the given prefix
, or null
if no namespace is
registered with this prefix
.prefix
- the prefix of the desired namespaceprefix
, or null
if no namespace is registered
with this prefix
public ProxyPackage getByUri(@Nullable String uri)
ProxyPackage
identified by the given uri
, or null
if no namespace is
registered with this uri
.uri
- the URI of the desired namespaceuri
, or null
if no namespace is registered with
this uri
.@Nonnull public ProxyPackage register(org.eclipse.emf.ecore.EPackage ePackage)
ProxyPackage
from the given ePackage
.ePackage
- the EPackage
associated with the namespace@Nonnull public ProxyPackage register(String prefix, String uri)
prefix
- the prefix of the new namespaceuri
- the URI associated with the prefixpublic void clean()
Copyright © 2013–2019 Atlanmod. All rights reserved.