org.eclipse.emf.codegen.ecore.generator
Interface GeneratorAdapterFactory.Descriptor.Registry

All Known Implementing Classes:
GeneratorAdapterFactory.Descriptor.DelegatingRegistry
Enclosing interface:
GeneratorAdapterFactory.Descriptor

public static interface GeneratorAdapterFactory.Descriptor.Registry

A registry of Descriptors. Descriptors are keyed by package ID, and multiple descriptors can be associated with each package ID.


Field Summary
static GeneratorAdapterFactory.Descriptor.Registry INSTANCE
          The global generator adapter factory descriptor registry.
 
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.
 Collection getDescriptors(String packageID)
          Returns the descriptors registered against the given package ID.
 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.
 

Field Detail

INSTANCE

public static final GeneratorAdapterFactory.Descriptor.Registry INSTANCE
The global generator adapter factory descriptor registry.

Method Detail

getDescriptors

public Collection getDescriptors(String packageID)
Returns the descriptors registered against the given package ID.


addDescriptor

public boolean addDescriptor(String packageID,
                             GeneratorAdapterFactory.Descriptor descriptor)
Registers the given descriptor against the specified package ID.

Returns:
whether the descriptor was added to the collection of descriptors for that package ID.

removeDescriptor

public boolean removeDescriptor(String packageID,
                                GeneratorAdapterFactory.Descriptor descriptor)
Removes the given descriptor from the collection registered against the given package ID.

Returns:
whether the descriptor was deregistered (this should be true if it was previously registered against that package ID).

removeDescriptors

public boolean removeDescriptors(String packageID)
Deregisters all descriptors for a given package ID.

Returns:
whether any descriptors were deregistered (this should be true if any descriptor was previously registered against it).

clear

public void clear()
Clears the registry of all descriptor registrations.


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