Class GlobalParameterValueDefinition
java.lang.Object
com.aquima.interactions.composer.model.definition.GlobalParameterValueDefinition
Represents the definition of a parameter value, consisting of:
- the name of the parameter whose value is defined
- the type of the parameter
- for primitive parameters, the data type and expression used to obtain the actual value
- for text parameters, the reference to the content item with the text
- Since:
- 11.3
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GlobalParameterValueDefinition
(IGlobalParameterValueDS datasource, IExpressionParser expressionParser) Creates a new instance from the given datasource. -
Method Summary
Modifier and TypeMethodDescriptionIf the parameter is of primitive type, returns the expression which should be evaluated in order to obtain the actual value.Returns the name of the parameter whose value is defined by this object.Returns the type of the parameter whose value is defined by this object.If the parameter is of primitive type, returns the data type of the parameter.getText()
If the parameter is of text type, returns the reference to the content item containing the text.
-
Constructor Details
-
GlobalParameterValueDefinition
protected GlobalParameterValueDefinition(IGlobalParameterValueDS datasource, IExpressionParser expressionParser) Creates a new instance from the given datasource. If the parameter is of primitive type, the given expressionParser is used to parse the parameter value expression.- Parameters:
datasource
- the data source (not null)expressionParser
- expression parser (not null)- Throws:
InitializationException
- if the parameter is of type primitive and the expression cannot be parsed
-
-
Method Details
-
getParameterName
Returns the name of the parameter whose value is defined by this object.- Returns:
- the name of the parameter, never null.
-
getParameterType
Returns the type of the parameter whose value is defined by this object.- Returns:
- the type of the parameter, never null.
-
getPrimitiveType
If the parameter is of primitive type, returns the data type of the parameter. If the parameter is of text type, returns null.- Returns:
- the data type of the parameter or null
-
getExpression
If the parameter is of primitive type, returns the expression which should be evaluated in order to obtain the actual value. If the parameter is of type text, this method returns null.- Returns:
- an expression or null.
-
getText
If the parameter is of text type, returns the reference to the content item containing the text. If the parameter is of type primitive then this method returns null.- Returns:
- a reference to a content item or null.
-