|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILoaderManager
Interface to the manager for model loaders.
This interface is not intended to be implemented by clients.
| Method Summary | |
|---|---|
void |
addLoader(java.lang.String id,
java.lang.String name,
ILoaderFactory factory,
boolean dynamic)
Add the named loader to the manager |
void |
addLoaderForType(java.lang.String id,
java.lang.String fileType)
Declare the the model loader represented by id can load files of type fileType. |
void |
clearDefaultLoader(java.lang.String fileType)
Clear the default loader (if any) associated with the file type. |
IModelLoaderDescription[] |
findCompatibleModelLoaders(java.lang.String fileType)
Return an array of model loaders that are capable of loading files of the specified type. |
IModelLoader |
getDefaultModelLoader(java.lang.String fileType)
Return the default model loader for the given file type. |
java.lang.String |
getDefaultModelLoaderId(java.lang.String fileType)
Return the id of the default model loader for the give file type. |
IModelLoader |
getLoader(java.lang.String url,
java.lang.String loaderId,
java.lang.String type)
Find an appropriate loader. |
IModelLoader |
getModelLoader(java.lang.String id)
Return a model loader |
void |
removeLoader(java.lang.String id)
Remove a loader from the manager. |
void |
removeLoaderForType(java.lang.String id,
java.lang.String fileType)
Forget that the model loader id can load files of type fileType. |
void |
setDefaultLoader(java.lang.String fileType,
java.lang.String id)
Define a specific loader as the default model loader for a file type. |
| Method Detail |
|---|
void addLoader(java.lang.String id,
java.lang.String name,
ILoaderFactory factory,
boolean dynamic)
id - the loader's unique identifier stringname - a descriptive name of the loaderfactory - a factory for creating an instance of the loader.dynamic - whether the loader supports dynamic matching of file types by implementing IModelLoader.canLoad(String).void removeLoader(java.lang.String id)
id - the unique identifier of the loader to remove.
void setDefaultLoader(java.lang.String fileType,
java.lang.String id)
throws java.lang.IllegalStateException
fileType - the file type (extension) for which the loader is the defaultid - the id of the default loader
java.lang.IllegalStateException - if the file type already has a default loader assigned to it.void clearDefaultLoader(java.lang.String fileType)
fileType - the file type(extension) for which the loader is the default.IModelLoader getModelLoader(java.lang.String id)
id - the unique identifier of the model loader
null if not found.IModelLoader getDefaultModelLoader(java.lang.String fileType)
fileType - the file type (extension)
null if there is no default model loader.IModelLoaderDescription[] findCompatibleModelLoaders(java.lang.String fileType)
fileType - the file type (extension)
null.java.lang.String getDefaultModelLoaderId(java.lang.String fileType)
fileType - the file type (extension)
null if no loader exists.
void addLoaderForType(java.lang.String id,
java.lang.String fileType)
id can load files of type fileType.
id - the model loader unique identifier.fileType - the file type (extension).
void removeLoaderForType(java.lang.String id,
java.lang.String fileType)
id can load files of type fileType.
id - the model loader unique identifier.fileType - the file type (extension).
IModelLoader getLoader(java.lang.String url,
java.lang.String loaderId,
java.lang.String type)
throws CoreJETException
url - loaderId - type -
CoreJETException - if a loader cannot be found
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||