|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.codegen.ecore.generator.GeneratorAdapterFactory.Descriptor.DelegatingRegistry
A simple Registry
implementation, in which getDescriptors(String)
can delegate to another Registry
if no descriptors are locally registered against the given package
ID. This implementation does not prevent duplicate registrations.
Field Summary | |
protected GeneratorAdapterFactory.Descriptor.Registry |
delegateRegistry
|
protected Map |
map
|
Fields inherited from interface org.eclipse.emf.codegen.ecore.generator.GeneratorAdapterFactory.Descriptor.Registry |
INSTANCE |
Constructor Summary | |
GeneratorAdapterFactory.Descriptor.DelegatingRegistry()
|
|
GeneratorAdapterFactory.Descriptor.DelegatingRegistry(GeneratorAdapterFactory.Descriptor.Registry delegateRegistry)
|
Method Summary | |
boolean |
addDescriptor(String packageID,
GeneratorAdapterFactory.Descriptor descriptor)
Registers the given descriptor against the specified package ID. |
void |
clear()
Clears the registry of all descriptor registrations. |
protected Collection |
delegatedGetDescriptors(String packageID)
|
Collection |
getDescriptors(String packageID)
Returns the descriptors registered against the given package ID. |
protected List |
getDescriptors(String packageID,
boolean forceCreate)
|
boolean |
removeDescriptor(String packageID,
GeneratorAdapterFactory.Descriptor descriptor)
Removes the given descriptor from the collection registered against the given package ID. |
boolean |
removeDescriptors(String packageID)
Deregisters all descriptors for a given package ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GeneratorAdapterFactory.Descriptor.Registry delegateRegistry
protected Map map
Constructor Detail |
public GeneratorAdapterFactory.Descriptor.DelegatingRegistry()
public GeneratorAdapterFactory.Descriptor.DelegatingRegistry(GeneratorAdapterFactory.Descriptor.Registry delegateRegistry)
Method Detail |
public Collection getDescriptors(String packageID)
GeneratorAdapterFactory.Descriptor.Registry
getDescriptors
in interface GeneratorAdapterFactory.Descriptor.Registry
protected Collection delegatedGetDescriptors(String packageID)
public boolean addDescriptor(String packageID, GeneratorAdapterFactory.Descriptor descriptor)
GeneratorAdapterFactory.Descriptor.Registry
addDescriptor
in interface GeneratorAdapterFactory.Descriptor.Registry
public boolean removeDescriptor(String packageID, GeneratorAdapterFactory.Descriptor descriptor)
GeneratorAdapterFactory.Descriptor.Registry
removeDescriptor
in interface GeneratorAdapterFactory.Descriptor.Registry
public boolean removeDescriptors(String packageID)
GeneratorAdapterFactory.Descriptor.Registry
removeDescriptors
in interface GeneratorAdapterFactory.Descriptor.Registry
public void clear()
GeneratorAdapterFactory.Descriptor.Registry
clear
in interface GeneratorAdapterFactory.Descriptor.Registry
protected List getDescriptors(String packageID, boolean forceCreate)
|
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 |