Class GlobalParameterValue

java.lang.Object
com.aquima.interactions.composer.model.GlobalParameterValue
All Implemented Interfaces:
IGlobalParameterValue, Serializable

public class GlobalParameterValue extends Object implements IGlobalParameterValue
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 Details

    • GlobalParameterValue

      public GlobalParameterValue(String parameterName, IValue value)
      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

      public GlobalParameterValue(String parameterName, IContentItem text)
      Creates a new instance. This constructor should be used when the parameter is of type text.
      Parameters:
      parameterName - the name of the parameter
      text - the content item containing the text
  • Method Details

    • getParameterName

      public String getParameterName()
      Description copied from interface: IGlobalParameterValue
      The name of the parameter whose value is represented by this object.
      Specified by:
      getParameterName in interface IGlobalParameterValue
      Returns:
      the parameter name, never null.
    • getParameterType

      public GlobalParameterType getParameterType()
      Description copied from interface: IGlobalParameterValue
      The type of the parameter whose value is represented by this object.
      Specified by:
      getParameterType in interface IGlobalParameterValue
      Returns:
      the parameter type, never null.
    • getPrimitiveType

      public DataType 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 interface IGlobalParameterValue
      Returns:
      the data type of this value, or null.
    • getValue

      public IValue 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 interface IGlobalParameterValue
      Returns:
      the primitive value, or null.
    • getText

      public IContentItem 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 interface IGlobalParameterValue
      Returns:
      the content item containing the text value or null.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object