org.eclipse.emf.ecore.impl
Class EPackageRegistryImpl

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.eclipse.emf.ecore.impl.EPackageRegistryImpl
All Implemented Interfaces:
Cloneable, EPackage.Registry, Map, Serializable

public class EPackageRegistryImpl
extends HashMap
implements EPackage.Registry

An implementation of a package registry.

See Also:
Serialized Form

Nested Class Summary
static class EPackageRegistryImpl.Delegator
           
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
protected static Map classLoaderToRegistryMap
           
protected  EPackage.Registry delegateRegistry
           
 
Fields inherited from interface org.eclipse.emf.ecore.EPackage.Registry
INSTANCE
 
Constructor Summary
EPackageRegistryImpl()
           
EPackageRegistryImpl(EPackage.Registry delegateRegistry)
           
 
Method Summary
 boolean containsKey(Object key)
           
static EPackage.Registry createGlobalRegistry()
           
protected  EPackage delegatedGetEPackage(String nsURI)
           
 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)
           
protected  void initialize(EPackage ePackage)
           
 
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

delegateRegistry

protected EPackage.Registry delegateRegistry

classLoaderToRegistryMap

protected static Map classLoaderToRegistryMap
Constructor Detail

EPackageRegistryImpl

public EPackageRegistryImpl()

EPackageRegistryImpl

public EPackageRegistryImpl(EPackage.Registry delegateRegistry)
Method Detail

createGlobalRegistry

public static EPackage.Registry createGlobalRegistry()

getEPackage

public EPackage getEPackage(String nsURI)
Description copied from interface: EPackage.Registry
Looks up the value in the map, converting EPackage.Descriptor objects to EPackage objects on demand.

Specified by:
getEPackage in interface EPackage.Registry

initialize

protected void initialize(EPackage ePackage)

delegatedGetEPackage

protected EPackage delegatedGetEPackage(String nsURI)

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

getRegistry

public static EPackage.Registry getRegistry(ClassLoader classLoader)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.