|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.eclipse.emf.ecore.impl.EPackageRegistryImpl
An implementation of a package registry that can delegate failed lookup to another registry.
| Nested Class Summary | |
static class |
EPackageRegistryImpl.Delegator
A package registry implementation that delegates to a class loader specific registry. |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary | |
protected static Map |
classLoaderToRegistryMap
A map from class loader to its associated registry. |
protected EPackage.Registry |
delegateRegistry
The delegate registry. |
| Fields inherited from interface org.eclipse.emf.ecore.EPackage.Registry |
INSTANCE |
| Constructor Summary | |
EPackageRegistryImpl()
Creates a non-delegating instance. |
|
EPackageRegistryImpl(EPackage.Registry delegateRegistry)
Creates a delegating instance. |
|
| Method Summary | |
boolean |
containsKey(Object key)
Returns whether this map or the delegate map contains this key. |
static EPackage.Registry |
createGlobalRegistry()
Creates the instance of the global registry. |
protected EFactory |
delegatedGetEFactory(String nsURI)
Returns the factory from the delegate registry, if there is one. |
protected EPackage |
delegatedGetEPackage(String nsURI)
Returns the package from the delegate registry, if there is one. |
EFactory |
getEFactory(String nsURI)
Looks up the value in the map, converting EPackage.Descriptor objects to EFactory objects on demand. |
EPackage |
getEPackage(String nsURI)
Looks up the value in the map, converting EPackage.Descriptor objects to EPackage objects on demand. |
static EPackage.Registry |
getRegistry(ClassLoader classLoader)
Returns the package registry associated with the given class loader. |
protected void |
initialize(EPackage ePackage)
Creates a delegating instance. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| 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, values |
| Field Detail |
protected EPackage.Registry delegateRegistry
protected static Map classLoaderToRegistryMap
| Constructor Detail |
public EPackageRegistryImpl()
public EPackageRegistryImpl(EPackage.Registry delegateRegistry)
| Method Detail |
public static EPackage.Registry createGlobalRegistry()
instance of the global registry.
public EPackage getEPackage(String nsURI)
EPackage.RegistryEPackage.Descriptor objects to EPackage objects on demand.
getEPackage in interface EPackage.Registrypublic EFactory getEFactory(String nsURI)
EPackage.RegistryEPackage.Descriptor objects to EFactory objects on demand.
getEFactory in interface EPackage.Registryprotected void initialize(EPackage ePackage)
protected EPackage delegatedGetEPackage(String nsURI)
protected EFactory delegatedGetEFactory(String nsURI)
public boolean containsKey(Object key)
keySet().contains(key).
containsKey in interface Mapkey - the key whose presence in this map is to be tested.
public static EPackage.Registry getRegistry(ClassLoader classLoader)
classLoader - the class loader.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||