Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.sdk.device.midp.library
Interface ILibraryImporterRegistry


public interface ILibraryImporterRegistry

The Library Importer Registry provides a place to store and retrieve Library Importers using just it's ID.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
 void addLibraryImporter(String importerId, ILibraryImporter importer)
          Register a new ILibraryImporter associated to the specified ID.
 ILibraryImporter getLibraryImporter(String importerId)
          Retrieve a ILibraryImporter from registry.
 Set<String> getLibraryImporterIds()
          Returns a set view of the Library Importer IDs contained in this registry.
 

Method Detail

getLibraryImporter

ILibraryImporter getLibraryImporter(String importerId)
Retrieve a ILibraryImporter from registry.

Parameters:
importerId - the ID for the ILibraryImporter. The importerId must not be null.
Returns:
the ILibraryImporter associated with the passed ID or null if no importer associated to the specified ID was found.

addLibraryImporter

void addLibraryImporter(String importerId,
                        ILibraryImporter importer)
Register a new ILibraryImporter associated to the specified ID. If the registry previously contained a mapping for this ID, the old value is replaced by the specified value.

Parameters:
importerId - the unique ID for the ILibraryImporter. The importerId must not be null.
importer - the ILibraryImporter to be registered. The importer must not be null.

getLibraryImporterIds

Set<String> getLibraryImporterIds()
Returns a set view of the Library Importer IDs contained in this registry.

Returns:
a set view of the Library Importer IDs contained in this registry.

Mobile Tools for Java
Release 1.0