org.eclipse.emf.ecore.impl
Class EPackageRegistryImpl.Delegator

java.lang.Object
  extended byorg.eclipse.emf.ecore.impl.EPackageRegistryImpl.Delegator
All Implemented Interfaces:
EPackage.Registry, Map
Enclosing class:
EPackageRegistryImpl

public static class EPackageRegistryImpl.Delegator
extends Object
implements EPackage.Registry

A package registry implementation that delegates to a class loader specific registry.


Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.EPackage.Registry
INSTANCE
 
Constructor Summary
EPackageRegistryImpl.Delegator()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
protected  EPackage.Registry delegateRegistry()
           
protected  EPackage.Registry delegateRegistry(ClassLoader classLoader)
           
 Set entrySet()
           
 Object get(Object key)
           
 EFactory getEFactory(String key)
          Looks up the value in the map, converting EPackage.Descriptor objects to EFactory objects on demand.
 EPackage getEPackage(String key)
          Looks up the value in the map, converting EPackage.Descriptor objects to EPackage objects on demand.
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

EPackageRegistryImpl.Delegator

public EPackageRegistryImpl.Delegator()
Method Detail

delegateRegistry

protected EPackage.Registry delegateRegistry(ClassLoader classLoader)

delegateRegistry

protected EPackage.Registry delegateRegistry()

getEPackage

public EPackage getEPackage(String key)
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

getEFactory

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

Specified by:
getEFactory in interface EPackage.Registry

size

public int size()
Specified by:
size in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

containsKey

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

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map

clear

public void clear()
Specified by:
clear in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

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