Class GlobalParameterValueDefinition

java.lang.Object
com.aquima.interactions.composer.model.definition.GlobalParameterValueDefinition

public class GlobalParameterValueDefinition extends Object
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 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

      public String getParameterName()
      Returns the name of the parameter whose value is defined by this object.
      Returns:
      the name of the parameter, never null.
    • getParameterType

      public GlobalParameterType getParameterType()
      Returns the type of the parameter whose value is defined by this object.
      Returns:
      the type of the parameter, never null.
    • getPrimitiveType

      public DataType 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

      public IExpression 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

      public ElementReference 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.