Class SimpleExtension
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.pattern.extension.SimpleExtension
- All Implemented Interfaces:
ConfigurableItemIF,ExtensionStatementIF,FilterExtensionStatementIF,IdentifierAble,Serializable
Simple extension to be interpreted at run-time. It maybe an filtering
condition or an navigating or referencing property access.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ExtensionStoreElements iWork) Execute the statement.Get the list of all acceptable parameter names.getName()Get the name.voidinitialize(SessionInterface iSession, String iExpression, MetaModel sourceMM, MetaModel targetMM, boolean bIgnoreParseError) Init the expression.voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) Set the configuration context of this configurable item.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, 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, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
SimpleExtension
public SimpleExtension()
-
-
Method Details
-
toString
- Overrides:
toStringin classConfigurableItem
-
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- Overrides:
setConfigurationContextin classConfigurableItem- Parameters:
iSession- sessionsourceMM- source meta modeltargetMM- target meta modeliItem- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
initialize
public void initialize(SessionInterface iSession, String iExpression, MetaModel sourceMM, MetaModel targetMM, boolean bIgnoreParseError) throws M2MException, RemoteException Init the expression.- Parameters:
iSession-iExpression- expression stringsourceMM- metamodel of source modeltargetMM- metamodel of target modelbIgnoreParseError- ignore parsing errors in expression- Throws:
M2MExceptionRemoteException
-
execute
Description copied from interface:ExtensionStatementIFExecute the statement.- Specified by:
executein interfaceExtensionStatementIF- Parameters:
iWork- all stores with all belonging mapping elements- Throws:
M2MExceptionRemoteException
-
getName
Description copied from interface:ConfigurableItemIFGet the name.- Specified by:
getNamein interfaceConfigurableItemIF- Overrides:
getNamein classConfigurableItem- Returns:
- name as given by user in model transformation configuration
-
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- Overrides:
getKnownParametersin classConfigurableItem- 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
-