|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModelAdapter
The EMFVM execution interface. Defines a set of methods dedicated to the execution of transformations.
Method Summary | |
---|---|
void |
delete(AbstractStackFrame frame,
java.lang.Object eo)
Deletes an object on the given frame. |
void |
finalizeModel(IModel model)
Finalizes the given model. |
java.lang.Object |
get(AbstractStackFrame frame,
java.lang.Object eo,
java.lang.String name)
Gets a value from an object in the given frame. |
java.lang.Object |
getID(java.lang.Object element)
Returns the element id. |
java.util.List<java.lang.Object> |
getSupertypes(java.lang.Object type)
Returns the list of supertypes of a given type. |
java.lang.Object |
getType(java.lang.Object value)
Returns the type of a given element. |
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object self,
java.lang.Object[] arguments)
Invokes a method. |
boolean |
isMetametaElement(java.lang.Object element)
Returns true if the given element is managed by the metametamodel of the current model adapter. |
boolean |
isModelElement(java.lang.Object o)
Returns true if the given object is managed by the current model adapter. |
boolean |
prettyPrint(ExecEnv execEnv,
java.io.PrintStream out,
java.lang.Object value)
Displays in a readable format the given object. |
void |
registerVMSupertypes(java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Class<?>>> vmSupertypes)
Registers a map of supertypes. |
void |
registerVMTypeOperations(java.util.Map<java.lang.Object,java.util.Map<java.lang.String,Operation>> vmTypeOperations)
Registers a map of operations. |
void |
set(AbstractStackFrame frame,
java.lang.Object eo,
java.lang.String name,
java.lang.Object value)
Sets a value on an object in the given frame. |
void |
setAllowInterModelReferences(boolean allowInterModelRefs)
Sets "allow inter-model references" for this model adapter. |
void |
setID(java.lang.Object element,
java.lang.Object id)
Sets the element id. |
void |
unSet(AbstractStackFrame frame,
java.lang.Object eo,
java.lang.String name)
Unsets a value on an object in the given frame. |
Method Detail |
---|
java.lang.Object get(AbstractStackFrame frame, java.lang.Object eo, java.lang.String name)
frame
- the AbstractStackFrame
eo
- the objectname
- the name of the attribute / feature which contains the value
void set(AbstractStackFrame frame, java.lang.Object eo, java.lang.String name, java.lang.Object value)
frame
- the AbstractStackFrame
eo
- the objectname
- the name of the attribute / feature which will contain the valuevalue
- the value to setvoid unSet(AbstractStackFrame frame, java.lang.Object eo, java.lang.String name)
frame
- the AbstractStackFrame
eo
- the objectname
- the name of the attribute / feature which will contain the valuevoid delete(AbstractStackFrame frame, java.lang.Object eo)
frame
- the AbstractStackFrame
eo
- the object to deletevoid registerVMSupertypes(java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Class<?>>> vmSupertypes)
vmSupertypes
- the mapvoid registerVMTypeOperations(java.util.Map<java.lang.Object,java.util.Map<java.lang.String,Operation>> vmTypeOperations)
vmTypeOperations
- the mapboolean prettyPrint(ExecEnv execEnv, java.io.PrintStream out, java.lang.Object value)
execEnv
- the current execEnvout
- the output streamvalue
- the object to display
java.lang.Object getType(java.lang.Object value)
value
- the type
java.util.List<java.lang.Object> getSupertypes(java.lang.Object type)
type
- the type
void setAllowInterModelReferences(boolean allowInterModelRefs)
allowInterModelRefs
- true if intermodel references are allowedjava.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object self, java.lang.Object[] arguments)
method
- the method to invokeself
- the object contextarguments
- the call arguments
void finalizeModel(IModel model)
model
- the given modeljava.lang.Object getID(java.lang.Object element)
element
- the element
void setID(java.lang.Object element, java.lang.Object id)
element
- the elementid
- the id to setboolean isModelElement(java.lang.Object o)
true
if the given object is managed by the current model adapter.
o
- the given object
true
if the given object is managed by the current model adapterboolean isMetametaElement(java.lang.Object element)
true
if the given element is managed by the metametamodel of the current model adapter.
element
- the given element
true
if the given element is managed by the metametamodel of the current model adapter
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |