Class GlobalParameterValue
java.lang.Object
com.aquima.interactions.composer.model.GlobalParameterValue
- All Implemented Interfaces:
IGlobalParameterValue
,Serializable
Represents the value of a global parameter, consisting of:
- the name of the parameter whose value is represented by this object
- the type of the parameter
- if the parameter is of type primitive, the value resulted from evaluating the parameter value expression
- if the parameter is of type text, the content item containing the text
- Since:
- 11.3
- Author:
- Petru Galanton
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalParameterValue
(String parameterName, IContentItem text) Creates a new instance.GlobalParameterValue
(String parameterName, IValue value) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The name of the parameter whose value is represented by this object.The type of the parameter whose value is represented by this object.If the parameter is of type primitive, this method returns the data type of the value.getText()
If the parameter is of type text, this method returns the content item containing the text.getValue()
If the parameter is of type primitive, this method returns the value resulted from evaluating the value expression.int
hashCode()
-
Constructor Details
-
GlobalParameterValue
Creates a new instance. This constructor should be used when the parameter is of type primitive.- Parameters:
parameterName
- the name of the parameter.value
- the value resulted from evaluating the parameter value expression
-
GlobalParameterValue
Creates a new instance. This constructor should be used when the parameter is of type text.- Parameters:
parameterName
- the name of the parametertext
- the content item containing the text
-
-
Method Details
-
getParameterName
Description copied from interface:IGlobalParameterValue
The name of the parameter whose value is represented by this object.- Specified by:
getParameterName
in interfaceIGlobalParameterValue
- Returns:
- the parameter name, never null.
-
getParameterType
Description copied from interface:IGlobalParameterValue
The type of the parameter whose value is represented by this object.- Specified by:
getParameterType
in interfaceIGlobalParameterValue
- Returns:
- the parameter type, never null.
-
getPrimitiveType
Description copied from interface:IGlobalParameterValue
If the parameter is of type primitive, this method returns the data type of the value. If the parameter is of type text, this method returns null.- Specified by:
getPrimitiveType
in interfaceIGlobalParameterValue
- Returns:
- the data type of this value, or null.
-
getValue
Description copied from interface:IGlobalParameterValue
If the parameter is of type primitive, this method returns the value resulted from evaluating the value expression. Otherwise, this method returns null.- Specified by:
getValue
in interfaceIGlobalParameterValue
- Returns:
- the primitive value, or null.
-
getText
Description copied from interface:IGlobalParameterValue
If the parameter is of type text, this method returns the content item containing the text. Otherwise, this method returns null.- Specified by:
getText
in interfaceIGlobalParameterValue
- Returns:
- the content item containing the text value or null.
-
equals
-
hashCode
public int hashCode()
-