org.eclipse.emf.facet.util.emf.core
Interface ICatalogSetManager2


public interface ICatalogSetManager2

Since:
0.2

Field Summary
static ICatalogSetManager2 INSTANCE
          Deprecated. has been replaced by org.eclipse.emf.facet.util.emf.core.ICatalogSetManagerFactory .createICatalogSetManager(ResourceSet)
 
Method Summary
 Bundle getBundleByResource(Resource eResource)
          Return the bundle containing the file from which we have created the given resource.
<T> java.util.List<T>
getCatalogManagerByType(java.lang.Class<? extends T> catalogManagerClass)
          Return the registered catalogs conforming to the parameter class.
 CatalogSet getCatalogSet()
          This method returns the CatalogSet object which contains all the registered catalogs.
 void registerModelDeclaration(IFile file)
          This method takes a file to register it as a "modelDeclaration" extension in its containing plug-in.
 

Field Detail

INSTANCE

@Deprecated
static final ICatalogSetManager2 INSTANCE
Deprecated. has been replaced by org.eclipse.emf.facet.util.emf.core.ICatalogSetManagerFactory .createICatalogSetManager(ResourceSet)
The singleton instance of this ICatalogSetManager2.

Method Detail

getCatalogSet

CatalogSet getCatalogSet()
This method returns the CatalogSet object which contains all the registered catalogs.

Returns:
the set of registered Catalogs

getBundleByResource

Bundle getBundleByResource(Resource eResource)
Return the bundle containing the file from which we have created the given resource.

Parameters:
eResource - the EMF Resource
Returns:
the Bundle matching the given resource, or null if the resource is not defined in a Bundle.
Throws:
java.lang.IllegalArgumentException - if the resource is null

registerModelDeclaration

void registerModelDeclaration(IFile file)
                              throws InvalidFacetSetException
This method takes a file to register it as a "modelDeclaration" extension in its containing plug-in.

Parameters:
file - the file to be registered as a "modelDeclaration"
Throws:
InvalidFacetSetException

getCatalogManagerByType

<T> java.util.List<T> getCatalogManagerByType(java.lang.Class<? extends T> catalogManagerClass)
Return the registered catalogs conforming to the parameter class.

Returns:
a list of ICatalogManager