Class PatternHookElementFromInitialSelection
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.pattern.Pattern
de.mid.innovator.m2msdk.model.transformation.pattern.PatternHookBase
de.mid.innovator.m2msdk.model.transformation.pattern.sourceMatch.PatternHookElementFromInitialSelection
- All Implemented Interfaces:
ConditionAbleIF,ConfigurableItemIF,PatternIF,SourceMatchClassIF,IdentifierAble,Serializable
public class PatternHookElementFromInitialSelection
extends PatternHookBase
implements SourceMatchClassIF
Pattern to get elements from initial selection of source model. You may abort
the model transformation if there is no element in the initial selection. You
may abort the model transformation if there too many elements in the initial
selection. The embedding is ignored for this target match.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterByPattern(MappingModelRole modelRole, MappingElementIF sourceElement, MappingAnchor anchor, MappingElementList iPatternIn, MappingElementList patternOut, TransformationStepSubStepData subStepData) Filter the given list of patterns.Methods inherited from class de.mid.innovator.m2msdk.model.transformation.pattern.PatternHookBase
getKnownParameters, setConfigurationContextMethods inherited from class de.mid.innovator.m2msdk.model.transformation.pattern.Pattern
checkElementsExtension, evaluate, evaluateConditions, evaluateScore, filterElements, preinitMethods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getName, getParentItem, getParentItem, setBaseItem, 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.ConditionAbleIF
evaluateConditions, evaluateScore, filterElementsMethods 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
-
PatternHookElementFromInitialSelection
public PatternHookElementFromInitialSelection()Parameters
-
-
Method Details
-
filterByPattern
public void filterByPattern(MappingModelRole modelRole, MappingElementIF sourceElement, MappingAnchor anchor, MappingElementList iPatternIn, MappingElementList patternOut, TransformationStepSubStepData subStepData) throws M2MException, RemoteException Description copied from interface:PatternIFFilter the given list of patterns.- Specified by:
filterByPatternin interfacePatternIF- Overrides:
filterByPatternin classPattern- Parameters:
modelRole- If the given pattern is in the source or target modelsourceElement- TODOanchor-iPatternIn- The list of patterns to be filteredpatternOut- The list of patterns which matchedsubStepData- SubstepData- Throws:
M2MException- an exception occurredRemoteException
-