org.eclipse.ocl.examples.interpreter.console
Class DelegatingPackageRegistry
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.eclipse.emf.ecore.impl.EPackageRegistryImpl
org.eclipse.ocl.examples.interpreter.console.DelegatingPackageRegistry
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, org.eclipse.emf.ecore.EPackage.Registry
public class DelegatingPackageRegistry
- extends org.eclipse.emf.ecore.impl.EPackageRegistryImpl
A package registry that delegates to multiple other registries (in order),
also delegating the Map.values()
API in addition to package look-up.
This is safe to use with the EcoreEnvironmentFactory
because Ecore
environments only iterate the values of a registry.
- Author:
- Christian W. Damus (cdamus)
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.EPackageRegistryImpl |
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.Delegator |
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Fields inherited from class org.eclipse.emf.ecore.impl.EPackageRegistryImpl |
classLoaderToRegistryMap, delegateRegistry |
Fields inherited from interface org.eclipse.emf.ecore.EPackage.Registry |
INSTANCE |
Method Summary |
protected org.eclipse.emf.ecore.EFactory |
delegatedGetEFactory(java.lang.String nsURI)
|
protected org.eclipse.emf.ecore.EPackage |
delegatedGetEPackage(java.lang.String nsURI)
|
java.util.Collection<java.lang.Object> |
values()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EPackageRegistryImpl |
containsKey, createGlobalRegistry, getEFactory, getEPackage, getRegistry, initialize |
Methods inherited from class java.util.HashMap |
clear, clone, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size |
DelegatingPackageRegistry
public DelegatingPackageRegistry(org.eclipse.emf.ecore.EPackage.Registry delegate)
DelegatingPackageRegistry
public DelegatingPackageRegistry(org.eclipse.emf.ecore.EPackage.Registry delegate1,
org.eclipse.emf.ecore.EPackage.Registry delegate2)
DelegatingPackageRegistry
public DelegatingPackageRegistry(java.util.List<org.eclipse.emf.ecore.EPackage.Registry> delegates)
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
values
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
values
in class java.util.HashMap<java.lang.String,java.lang.Object>
delegatedGetEFactory
protected org.eclipse.emf.ecore.EFactory delegatedGetEFactory(java.lang.String nsURI)
- Overrides:
delegatedGetEFactory
in class org.eclipse.emf.ecore.impl.EPackageRegistryImpl
delegatedGetEPackage
protected org.eclipse.emf.ecore.EPackage delegatedGetEPackage(java.lang.String nsURI)
- Overrides:
delegatedGetEPackage
in class org.eclipse.emf.ecore.impl.EPackageRegistryImpl