Class ModelTransformation
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.ModelTransformation
- All Implemented Interfaces:
EngineInterface,ConfigurableItemIF,ModelTransformationIF,IdentifierAble,Serializable,Remote
public class ModelTransformation
extends ConfigurableItem
implements ModelTransformationIF, EngineInterface
The model transformation. It represents the complete model transformation. It
can be used as engine in the workflow configuration and is the root of the
model transformation configuration.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend one step at the end of the list.Get name of class.Get the list of all acceptable parameter names.Get the list of all steps in the transformation.Get the meta model of the source model.getStep(Identifier iId) Get step for this identifier.Get step for this name.Get the meta model of the target model.voidrun()The engine is executed.voidsetConfigurationContext(SessionInterface iSession, MetaModel iSourceMM, MetaModel iTargetMM, ConfigurationItemIF context) Set the configuration context of this configurable item.voidsetParameter(String iName, String iValue) Set the parameter of the application.voidsetSession(SessionInterface iSession) Set the server session.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setId, setParentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.mid.innovator.m2msdk.model.transformation.interfaces.ConfigurableItemIF
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
ModelTransformation
public ModelTransformation()Constructor of model transformation within workflow.
-
-
Method Details
-
getSourceMetaModel
Description copied from interface:ModelTransformationIFGet the meta model of the source model.- Specified by:
getSourceMetaModelin interfaceModelTransformationIF- Returns:
- meta model of source
-
getTargetMetaModel
Description copied from interface:ModelTransformationIFGet the meta model of the target model.- Specified by:
getTargetMetaModelin interfaceModelTransformationIF- Returns:
- meta model of target
-
setSession
Description copied from interface:EngineInterfaceSet the server session.- Specified by:
setSessionin interfaceEngineInterface- Parameters:
iSession- server session- Throws:
RemoteException
-
run
Description copied from interface:EngineInterfaceThe engine is executed.- Specified by:
runin interfaceEngineInterface- Throws:
RemoteException
-
setConfigurationContext
public void setConfigurationContext(SessionInterface iSession, MetaModel iSourceMM, MetaModel iTargetMM, ConfigurationItemIF context) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFSet the configuration context of this configurable item. The configurable item is configured according the context.- Specified by:
setConfigurationContextin interfaceConfigurableItemIF- Overrides:
setConfigurationContextin classConfigurableItem- Parameters:
iSession- sessioniSourceMM- source meta modeliTargetMM- target meta modelcontext- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF item) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFGet the list of all acceptable parameter names.- Specified by:
getKnownParametersin interfaceConfigurableItemIF- Overrides:
getKnownParametersin classConfigurableItem- Parameters:
me- mapping element, maybe nullitem- configuration item, maybe null- Returns:
- list of parameter names
- Throws:
M2MException- generic exceptionRemoteException- error in communicationRemoteException- exception from remote execution
-
toString
- Overrides:
toStringin classConfigurableItem
-
getStep
Description copied from interface:ModelTransformationIFGet step for this identifier.- Specified by:
getStepin interfaceModelTransformationIF- Parameters:
iId- qualified id step, maybe the identifier of an owned element- Returns:
- step
-
getStep
Description copied from interface:ModelTransformationIFGet step for this name.- Specified by:
getStepin interfaceModelTransformationIF- Parameters:
iName- name of transformation step- Returns:
- step
-
getClassname
Description copied from interface:EngineInterfaceGet name of class.- Specified by:
getClassnamein interfaceEngineInterface- Returns:
- class name
- Throws:
RemoteException
-
getModelTransformationStepList
Description copied from interface:ModelTransformationIFGet the list of all steps in the transformation.- Specified by:
getModelTransformationStepListin interfaceModelTransformationIF- Returns:
- list of all steps
-
addModelTransformationStep
Description copied from interface:ModelTransformationIFAppend one step at the end of the list.- Specified by:
addModelTransformationStepin interfaceModelTransformationIF- Parameters:
iStep- a step to append
-
setParameter
Description copied from interface:EngineInterfaceSet the parameter of the application. The value maybe interpreted by the application during the run.- Specified by:
setParameterin interfaceEngineInterface- Parameters:
iValue- the Value of the parameter
-