Interface ModelTransformationStepIF
- All Superinterfaces:
ConfigurableItemIF,IdentifierAble,Serializable
- All Known Implementing Classes:
ModelTransformationStep,ModelTransformationStepBase
Interface for model transformation step.
- Version:
- 10.1.1
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptioncalcAllTargetMatchCandidates(MappingElementIF se, TargetDetectionData target, TransformationStepSubStepData inputSubStepData) detectPatternAnchor(MappingElementIF se, TransformationStepSubStepData inputSubStepData) Uses the embedding pattern to detect the target elements anchor elements for creation and maintenance of the target.voidextendModel(WorkModelInterface workModel) Extend the source model by applying the model extension of this step.Get the embeddings for the target match.Get Model Glue Reader ManagerGet Model Glue Writer ManagerGet the embeddings for the target pattern.Get the pattern to create a target.Returns a List of PreTranstransformationSteps.Get the source model extension of this step.Get the patterns that define a source match.Get the lowest step group in which this item isReturns a List of SubTranstransformationSteps.Get the target model extension of this step.Get the patterns that define a target match.voidpreinit(SessionInterface iSession) Initialize the model transformation step.voidsetPreviousModelTransformationStep(ModelTransformationStepIF previousStep) Set the previous step as the default predecessor.voidsetStepGroup(GroupIF iGroup) Set the lowest group of this itemvoidTransform the source model by applying this step.voidtransformDispatch(MappingElementIF sourceElement, TargetDetectionData target, TransformationStepSubStepData subStepData) Transform a single source model element by applying this step.voidtransformElementList(MappingElementList candidates, TransformationStepSubStepData preStepData) Transforms the given Mapping Element ListMethods 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
-
Method Details
-
transform
Transform the source model by applying this step.- Throws:
AbortException- critical errorSevereException- error to abort step, but not complete transformationM2MExceptionRemoteExceptionRemoteException
-
transformElementList
void transformElementList(MappingElementList candidates, TransformationStepSubStepData preStepData) throws M2MException, RemoteException Transforms the given Mapping Element List- Parameters:
candidates-preStepData-- Throws:
AbortExceptionSevereExceptionM2MExceptionRemoteExceptionRemoteException
-
transformDispatch
void transformDispatch(MappingElementIF sourceElement, TargetDetectionData target, TransformationStepSubStepData subStepData) throws M2MException, RemoteException Transform a single source model element by applying this step.- Parameters:
sourceElement- model element in source modeltarget- existing and created targets glued with source persistently or matching sourcesubStepData- the description of the sub step- Throws:
M2MExceptionRemoteException
-
extendModel
Extend the source model by applying the model extension of this step.- Parameters:
workModel- work model to extend by this step- Throws:
AbortException- critical errorRemoteExceptionM2MExceptionRemoteException
-
preinit
Initialize the model transformation step.- Parameters:
iSession- session- Throws:
M2MExceptionRemoteException
-
detectPatternAnchor
MappingAnchor detectPatternAnchor(MappingElementIF se, TransformationStepSubStepData inputSubStepData) throws M2MException, RemoteException Uses the embedding pattern to detect the target elements anchor elements for creation and maintenance of the target.- Parameters:
se- Model element in source modelinputSubStepData- data about enclosing step- Returns:
- Anchor for a mapping element.
- Throws:
M2MExceptionRemoteExceptionAbortException- critical errorSevereException- errorRemoteException
-
getSourceExtension
ModelExtensionIF getSourceExtension()Get the source model extension of this step.- Returns:
- model extension
-
getTargetExtension
ModelExtensionIF getTargetExtension()Get the target model extension of this step.- Returns:
- model extension
-
getMatchEmbedding
ArrayList<ModelEmbeddingIF> getMatchEmbedding()Get the embeddings for the target match.- Returns:
- list of model embeddings
-
getPatternEmbedding
ArrayList<ModelEmbeddingIF> getPatternEmbedding()Get the embeddings for the target pattern.- Returns:
- list of model embeddings
-
getModelGlueWriterManager
ModelGlueWriterManager getModelGlueWriterManager()Get Model Glue Writer Manager- Returns:
- ModelGlueWriterManager
-
getModelGlueReaderManager
ModelGlueReaderManager getModelGlueReaderManager()Get Model Glue Reader Manager- Returns:
- ModelGlueReaderManager
-
getPatternProduction
ArrayList<PatternProductionIF> getPatternProduction()Get the pattern to create a target.- Returns:
- patterns to create a target
-
getSourceMatchPattern
PatternList<SourceMatchClassIF> getSourceMatchPattern()Get the patterns that define a source match.- Returns:
- list of patterns
-
getTargetMatchPattern
PatternList<TargetMatchClassIF> getTargetMatchPattern()Get the patterns that define a target match.- Returns:
- list of patterns
-
setPreviousModelTransformationStep
Set the previous step as the default predecessor.- Parameters:
previousStep- Previous step in the order of the owning model transformation
-
getSubTransformationStepList
ModelTransformationStepListSubStep getSubTransformationStepList()Returns a List of SubTranstransformationSteps.- Returns:
- return a list of steps which are subordinated to this step
-
getPreTransformationSteps
ModelTransformationStepList getPreTransformationSteps()Returns a List of PreTranstransformationSteps.- Returns:
- return a list of steps which are executed before an element of the current element is processed.
-
getSymbolicStepName
String getSymbolicStepName()- Returns:
- returns the transformation step's symbolic name
-
getPredecessorModelTransformationStep
ModelTransformationStepList getPredecessorModelTransformationStep() throws AbortException, RemoteException- Throws:
AbortExceptionRemoteException
-
getStepProposals
-
calcAllTargetMatchCandidates
MappingElementList calcAllTargetMatchCandidates(MappingElementIF se, TargetDetectionData target, TransformationStepSubStepData inputSubStepData) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-
getTansformationStepIterator
TransformationStepIterator getTansformationStepIterator() -
getStepGroup
GroupIF getStepGroup()Get the lowest step group in which this item is- Returns:
- null if it is in no step group.
-
setStepGroup
Set the lowest group of this item- Parameters:
iGroup- step group
-