Class ConfigurationReader
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.application.MappingElementReaderBase
de.mid.innovator.m2msdk.application.ConfigurationReader
- All Implemented Interfaces:
ApplicationInterface,ConfigurableItemIF,IdentifierAble,Serializable
Class reads the configuration from XML and initialize the configuration model.
It also reads templates and customer configuration.
- Version:
- 10.1.1
- Author:
- Fabian Knoll fabian.knoll@koelsch-altmann.de
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of all acceptable parameter names.voidrun(SessionInterface iSession) Run the application.voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) Set the configuration context of this configurable item.voidsetParameter(String sName, String iValue) Set the value of a parameter.Methods 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.ConfigurableItemIF
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
ConfigurationReader
public ConfigurationReader()
-
-
Method Details
-
run
Description copied from interface:ApplicationInterfaceRun the application.- Parameters:
iSession- Session in which the application runs- Throws:
M2MExceptionRemoteException
-
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 classMappingElementReaderBase- 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- Overrides:
setConfigurationContextin classMappingElementReaderBase- Parameters:
iSession- sessionsourceMM- source meta modeltargetMM- target meta modeliItem- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
setParameter
Description copied from interface:ApplicationInterfaceSet the value of a parameter.- Specified by:
setParameterin interfaceApplicationInterface- Overrides:
setParameterin classMappingElementReaderBase- Parameters:
sName- name of the parameteriValue- value of the parameter
-