Package org.eclipse.m2m.atl.engine.vm
Class AtlModelHandler
java.lang.Object
org.eclipse.m2m.atl.engine.vm.AtlModelHandler
- Direct Known Subclasses:
AtlEMFModelHandler
The abstract model handler definition.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ModelLoader
static AtlModelHandler
getDefault
(String repository) Returns the default model handler.static AtlModelHandler
getHandler
(ASMModel model) Returns the handler of a given model.static String
getHandlerName
(ASMModel model) static String[]
Returns the model handlers ids.abstract boolean
isHandling
(ASMModel model) Returns true if the model is handled by the current model handler.static void
registerDefaultHandler
(String repository, AtlModelHandler handler) Registers the given handler as the default model handler for the given repository.
-
Field Details
-
AMH_EMF
EMF model handler name.- See Also:
-
-
Constructor Details
-
AtlModelHandler
public AtlModelHandler()
-
-
Method Details
-
registerDefaultHandler
Registers the given handler as the default model handler for the given repository.- Parameters:
repository
- The repository ID (e.g. "EMF" or "MDR")handler
- The default AtlModelHandler object to use.
-
getDefault
Returns the default model handler.- Parameters:
repository
- The repository ID (e.g. "EMF" or "MDR")- Returns:
- the default model handler.
-
getModelHandlers
Returns the model handlers ids.- Returns:
- the model handlers ids
-
getHandlerName
-
getHandler
Returns the handler of a given model.- Parameters:
model
- the model- Returns:
- the handler of a given model
-
isHandling
Returns true if the model is handled by the current model handler.- Parameters:
model
- the model to test- Returns:
- true if the model is handled by the current model handler.
-
createModelLoader
- Returns:
- A new ModelLoader instance corresponding to this kind of handler.
-