org.eclipse.gmt.weaver.transformation.util
Class TransformationUtil
java.lang.Object
org.eclipse.gmt.weaver.transformation.util.TransformationUtil
public class TransformationUtil
- extends java.lang.Object
|
Method Summary |
static org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel |
executeTransfo(java.util.Map models,
WeaverModelManager wManager,
WeaverXMLMetadata fileXML,
TransformationConfig tc)
executes a transformation (higher order or matching) available in the weaving graphical interface. |
static org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel |
saveNewModel(TransformationConfig tc,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel in,
WeaverModelManager wManager,
WeaverXMLMetadata currentXML)
Saves a new weaving model (passed by in). |
static java.util.Map |
setModelsMap(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel inModel,
WeaverModelManager wManager,
boolean isMatching,
boolean hasMatchConfig,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel cModel,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel cMetamodel)
this method is also used by the global weaver editor. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformationUtil
public TransformationUtil()
executeTransfo
public static org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel executeTransfo(java.util.Map models,
WeaverModelManager wManager,
WeaverXMLMetadata fileXML,
TransformationConfig tc)
throws WeaverException
- executes a transformation (higher order or matching) available in the weaving graphical interface.
- Parameters:
models - the map of modelswManager - the model managerfileXML - the xml file associated with the weaving model that is being editedtc - the configuration of the transformation that will be executed
- Returns:
-
- Throws:
WeaverException- Since:
- 1.0
saveNewModel
public static org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel saveNewModel(TransformationConfig tc,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel in,
WeaverModelManager wManager,
WeaverXMLMetadata currentXML)
- Saves a new weaving model (passed by in). It creates a new metadata file. The metadata file
is created based on the weaving model that is being edited (available in the model manager).
The transformation config element contain naming settings
- Parameters:
tc - in - wManager -
- Returns:
setModelsMap
public static java.util.Map setModelsMap(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel inModel,
WeaverModelManager wManager,
boolean isMatching,
boolean hasMatchConfig,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel cModel,
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel cMetamodel)
- this method is also used by the global weaver editor. It is not put in the Weaver Util because it is sets a very specific configuration
type
- Parameters:
tc - inModel -
- Returns: