Class ParameterTemplate
java.lang.Object
de.mid.innovator.m2msdk.model.parameter.ParameterTemplate
- All Implemented Interfaces:
ParameterTemplateIF,Serializable
- Direct Known Subclasses:
ParameterTemplateBoolean,ParameterTemplateEnum,ParameterTemplateExpression,ParameterTemplateItem,ParameterTemplateOption,ParameterTemplateStepReference
Parameter Template Descriptor.
- Version:
- 10.1.1
- Author:
- nagl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterTemplate(String name) ParameterTemplate(String name, String defaultValue) Create a template with name and default value. -
Method Summary
Modifier and TypeMethodDescriptionGet the default value of the parameter template.Get a description of parameter.getName()Get list of valid proposals.booleanisValidValue(String fExpression) Check if the expression is a valid value.voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF context) voidsetValidProposals(ParameterProposalList iListProposal) Set list of valid proposals.toString()
-
Constructor Details
-
ParameterTemplate
-
ParameterTemplate
Create a template with name and default value.- Parameters:
name- parameter namedefaultValue- default value, if parameter is not set
-
-
Method Details
-
setValidProposals
Set list of valid proposals.- Parameters:
iListProposal- List of valid values and descriptions
-
getName
- Specified by:
getNamein interfaceParameterTemplateIF
-
getDefaultValue
Get the default value of the parameter template. This value is used as value for the new parameter.- Returns:
- default value
-
getValidProposals
Get list of valid proposals.- Specified by:
getValidProposalsin interfaceParameterTemplateIF- Returns:
- list of proposals.
-
getDescription
Get a description of parameter.- Specified by:
getDescriptionin interfaceParameterTemplateIF- Returns:
- long description of what the parameter affects and what are the possible values.
-
isValidValue
Check if the expression is a valid value.- Parameters:
fExpression- expression to check- Returns:
- true, if the expression is a valid value
-
toString
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF iItem) throws M2MException, RemoteException - Specified by:
getKnownParametersin interfaceParameterTemplateIF- Throws:
M2MExceptionRemoteException
-
setConfigurationContext
public void setConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF context) throws RemoteException, M2MException - Specified by:
setConfigurationContextin interfaceParameterTemplateIF- Throws:
RemoteExceptionM2MException
-