Interface IModelAdapter
- All Known Implementing Classes:
EMFModelAdapter, UML2ModelAdapter
public interface IModelAdapter
The EMFVM execution interface. Defines a set of methods dedicated to the execution of transformations.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(AbstractStackFrame frame, Object eo) Deletes an object on the given frame.voidfinalizeModel(IModel model) Finalizes the given model.get(AbstractStackFrame frame, Object eo, String name) Gets a value from an object in the given frame.Returns the element id.getSupertypes(Object type) Returns the list of supertypes of a given type.Returns the type of a given element.Invokes a method.booleanChecks if an elements has been deleted in refining mode and does not belong to any resource.booleanisMetametaElement(Object element) Returnstrueif the given element is managed by the metametamodel of the current model adapter.booleanReturnstrueif the given object is managed by the current model adapter.booleanprettyPrint(ExecEnv execEnv, PrintStream out, Object value) Displays in a readable format the given object.voidregisterVMSupertypes(Map<Class<?>, List<Class<?>>> vmSupertypes) Registers a map of supertypes.voidRegisters a map of operations.voidset(AbstractStackFrame frame, Object eo, String name, Object value) Sets a value on an object in the given frame.voidsetAllowInterModelReferences(boolean allowInterModelRefs) Sets "allow inter-model references" for this model adapter.voidSets the element id.voidunSet(AbstractStackFrame frame, Object eo, String name) Unsets a value on an object in the given frame.
-
Method Details
-
get
Gets a value from an object in the given frame.- Parameters:
frame- theAbstractStackFrameeo- the objectname- the name of the attribute / feature which contains the value- Returns:
- the value
-
set
Sets a value on an object in the given frame.- Parameters:
frame- theAbstractStackFrameeo- the objectname- the name of the attribute / feature which will contain the valuevalue- the value to set
-
unSet
Unsets a value on an object in the given frame.- Parameters:
frame- theAbstractStackFrameeo- the objectname- the name of the attribute / feature which will contain the value
-
delete
Deletes an object on the given frame.- Parameters:
frame- theAbstractStackFrameeo- the object to delete
-
registerVMSupertypes
-
registerVMTypeOperations
-
prettyPrint
Displays in a readable format the given object.- Parameters:
execEnv- the current execEnvout- the output streamvalue- the object to display- Returns:
- true if display has been successful
-
getType
-
getSupertypes
-
setAllowInterModelReferences
void setAllowInterModelReferences(boolean allowInterModelRefs) Sets "allow inter-model references" for this model adapter.- Parameters:
allowInterModelRefs- true if intermodel references are allowed
-
invoke
-
finalizeModel
-
getID
-
isDeleted
Checks if an elements has been deleted in refining mode and does not belong to any resource.- Parameters:
element- the element- Returns:
- ture if the element has been deleted. False otherwise.
-
setID
-
isModelElement
Returnstrueif the given object is managed by the current model adapter.- Parameters:
o- the given object- Returns:
trueif the given object is managed by the current model adapter
-
isMetametaElement
Returnstrueif the given element is managed by the metametamodel of the current model adapter.- Parameters:
element- the given element- Returns:
trueif the given element is managed by the metametamodel of the current model adapter
-