Class ConfigurableItem
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
- All Implemented Interfaces:
ConfigurableItemIF,IdentifierAble,Serializable
- Direct Known Subclasses:
AddToStore,AnchorGroup,ChangeSet,ClassRegister,Condition,ConfigurationWriter,ConflictType,Constraint,DeleteStore,Error,ExtensionGroup,FilterChanged,FunctionalVariationPointGroup,FunctionalVariationPointGroups,InnovatorModelWorkflowBase,InnovatorRepositoryWorkflowBase,Insert,LastMappingDataWriter,LogCleaner,LogWriter,MapCompartmentVisibility,MapEdgePositions,MappingElementReaderBase,MappingElementWriterBase,MappingModelGlue,MapTextPosition,ModelAnchor,ModelAnchorSelf,ModelExtension,ModelTransformation,ModelTransformationStepBase,Modification,NullTransform,Operator,OptionReader,OptionSetter,OptionWriter,ParameterImpl,ParameterStructureBase,Pattern,PatternEmbeddingNull,PatternProductionAbs2RelPositionInnovator,PatternProductionAssignmentInnovator,PatternProductionDiagramRotationInnovator,PatternProductionNull,PatternProductionStretchDiaNodePositionsInnovator,Reference,RemoveFromStore,SetExtension,SimpleExtension,SimpleTransform,SourceCleaner,SourceReaderJavaBeans,SourceWriterInnovator,StepGroup,TargetWriterInnovator,TransformationStepIterator,WorkflowRunner
Base class of a configurable item.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConstraints(MappingElementIF source, MappingElementList targets, MappingElementList passedElements, MappingElementList bypassedElements) booleancheckConstraints(MappingElementIF element, ExpressionContext context) Check if all constraints evaluate to true.Configuration item which is the base of this configured item.getConfigurableItems(ConfigurationTag searchTag, ConfigurationItemSearchMode mode) Get the type of the configurable item.getId()Get the identifier of the owning model transformation step.getItem(Identifier id) Get owned item with this identifier.Get the list of all acceptable parameter names.getName()Get the name.Get the parent of this item.<T extends ConfigurableItemIF>
TgetParentItem(Class<T> parentClassType) voidsetBaseItem(ConfigurationItemIF iItem) voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) Set the configuration context of this configurable item.voidSet the type of the item.voidsetId(Identifier iID) Set the identifier.voidsetParent(ConfigurableItemIF iParent) Set the parent of this item.toString()
-
Constructor Details
-
ConfigurableItem
public ConfigurableItem()
-
-
Method Details
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFGet the list of all acceptable parameter names.- Specified by:
getKnownParametersin interfaceConfigurableItemIF- Parameters:
me- mapping element, maybe nulliItem- configuration item, maybe null- Returns:
- list of parameter names
- Throws:
M2MException- generic exceptionRemoteException- error in communicationRemoteException- exception from remote execution
-
setConfigurationContext
public void setConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) 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- Parameters:
iSession- sessionsourceMM- source meta modeltargetMM- target meta modeliItem- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
getParentItem
Description copied from interface:ConfigurableItemIFGet the parent of this item.- Specified by:
getParentItemin interfaceConfigurableItemIF- Returns:
- parent item, if found, else null
- Throws:
M2MException- error in communication
-
getParentItem
- Specified by:
getParentItemin interfaceConfigurableItemIF- Throws:
M2MException
-
setParent
Description copied from interface:ConfigurableItemIFSet the parent of this item.- Specified by:
setParentin interfaceConfigurableItemIF- Parameters:
iParent- parent item
-
getId
Description copied from interface:IdentifierAbleGet the identifier of the owning model transformation step.- Specified by:
getIdin interfaceIdentifierAble- Returns:
- id
-
setId
Description copied from interface:IdentifierAbleSet the identifier.- Specified by:
setIdin interfaceIdentifierAble- Parameters:
iID- id
-
getName
Description copied from interface:ConfigurableItemIFGet the name.- Specified by:
getNamein interfaceConfigurableItemIF- Returns:
- name as given by user in model transformation configuration
-
toString
-
getConfigurationTag
Description copied from interface:ConfigurableItemIFGet the type of the configurable item. The type defines the role that the item plays in the execution.- Specified by:
getConfigurationTagin interfaceConfigurableItemIF- Returns:
- type of the item
-
setConfigurationTag
Description copied from interface:ConfigurableItemIFSet the type of the item.- Specified by:
setConfigurationTagin interfaceConfigurableItemIF- Parameters:
iTag- type of the item
-
getBaseItem
Description copied from interface:ConfigurableItemIFConfiguration item which is the base of this configured item.- Specified by:
getBaseItemin interfaceConfigurableItemIF- Returns:
- configuration item
-
setBaseItem
- Specified by:
setBaseItemin interfaceConfigurableItemIF
-
getConfigurableItems
public List<ConfigurableItemIF> getConfigurableItems(ConfigurationTag searchTag, ConfigurationItemSearchMode mode) throws M2MException - Specified by:
getConfigurableItemsin interfaceConfigurableItemIF- Throws:
M2MException
-
checkConstraints
public boolean checkConstraints(MappingElementIF element, ExpressionContext context) throws RemoteException, M2MException Description copied from interface:ConfigurableItemIFCheck if all constraints evaluate to true.- Specified by:
checkConstraintsin interfaceConfigurableItemIF- Parameters:
context- context of evaluation with source and target- Returns:
- true, if there are no constraints or all constraints evaluate to true
- Throws:
RemoteException- exception from remote executionM2MException- generic exception
-
checkConstraints
public boolean checkConstraints(MappingElementIF source, MappingElementList targets, MappingElementList passedElements, MappingElementList bypassedElements) throws RemoteException, M2MException - Specified by:
checkConstraintsin interfaceConfigurableItemIF- Throws:
RemoteExceptionM2MException
-
getItem
Description copied from interface:ConfigurableItemIFGet owned item with this identifier.- Specified by:
getItemin interfaceConfigurableItemIF- Parameters:
id- identifier of the item, maybe the identifier of an owned element- Returns:
- item if found, else null
-