Class NullTransform
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.function.NullTransform
- All Implemented Interfaces:
SolutionIF,ConfigurableItemIF,FunctionalVariationPointIF,IdentifierAble,Serializable
Null transform. Do nothing at all.
- Version:
- 11.1.2
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(FVPMode mode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) Execute this functional variation point from source to target in the given modevoidexecute(FVPMode mode, MappingElementList source, MappingElementList target, FunctionalVariationPointChangeVectors changed) Execute a solution for a list of sources and targets in the given mode.getNew(MappingElementIF source) Get new value of property.getOld(MappingElementIF target) Get old value of property of target.Description of the result of the solution.getTargetValue(Conflict conflict) Value of the result of the solution.Methods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getKnownParameters, getName, getParentItem, getParentItem, setBaseItem, setConfigurationContext, setConfigurationTag, setId, setParent, toStringMethods 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, getKnownParameters, getName, getParentItem, getParentItem, setBaseItem, setConfigurationContext, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
NullTransform
public NullTransform()
-
-
Method Details
-
execute
public void execute(FVPMode mode, MappingElementList source, MappingElementList target, FunctionalVariationPointChangeVectors changed) throws M2MException Description copied from interface:SolutionIFExecute a solution for a list of sources and targets in the given mode. This does not necessarily mean, that all sources are read and all targets are modified!- Specified by:
executein interfaceSolutionIF- Parameters:
mode- mode of executionsource- source elementstarget- target elementschanged- protocol changes- Throws:
M2MException- an exception occurred
-
getNew
Description copied from interface:FunctionalVariationPointIFGet new value of property.- Specified by:
getNewin interfaceFunctionalVariationPointIF- Parameters:
source- Model element in source model causing the modification- Returns:
- value after modification
- Throws:
M2MException- generic exception
-
getOld
Description copied from interface:FunctionalVariationPointIFGet old value of property of target.- Specified by:
getOldin interfaceFunctionalVariationPointIF- Parameters:
target- Model element in target model to be modified.- Returns:
- value before modification
- Throws:
M2MException- generic exception
-
getTargetDescription
Description copied from interface:SolutionIFDescription of the result of the solution. This maybe the name of the modified property.- Specified by:
getTargetDescriptionin interfaceSolutionIF- Returns:
- Description of the target.
-
getTargetValue
Description copied from interface:SolutionIFValue of the result of the solution. This maybe the value of the modified property.- Specified by:
getTargetValuein interfaceSolutionIF- Parameters:
conflict- Conflict for which the value of the target is evaluated- Returns:
- Value of the target.
-
evaluate
public void evaluate(FVPMode mode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) Description copied from interface:FunctionalVariationPointIFExecute this functional variation point from source to target in the given mode- Specified by:
evaluatein interfaceFunctionalVariationPointIF- Parameters:
mode- the mode of executionsourceElement- the source model elementtargetElement- the target model elementchanged- change vector modified only if there are changes
-