Class ValueFormatDefinition

java.lang.Object
com.aquima.interactions.project.impl.ValueFormatDefinition
All Implemented Interfaces:
IValueFormatDefinition, Serializable

public class ValueFormatDefinition extends Object implements IValueFormatDefinition
This class holds a single value format definition for the application configuration.
Since:
8.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ValueFormatDefinition

      public ValueFormatDefinition(IValueFormatDS datasource)
      Constructs a value format definition based on a datasource.
      Parameters:
      datasource - The datasource, may not be null.
      Throws:
      InitializationException - Is thrown when the datasource provided invalid data to construct the definition.
  • Method Details

    • getName

      public String getName()
      This method returns the name of the value format definition. If this name is equal to a value format defined in Studio, this value format definition will replace the definition from studio.
      Specified by:
      getName in interface IValueFormatDefinition
      Returns:
      The name of the value format definition.
    • getType

      public DataType getType()
      This method returns the data type the value format was defined for.
      Specified by:
      getType in interface IValueFormatDefinition
      Returns:
      The data type the value format was defined for.
    • getLanguageCode

      public String getLanguageCode()
      This method returns the language code of the language that should be used for language specific symbols. Not all value formats do need language specific symbols, so the language code might be null for certain patterns.
      Specified by:
      getLanguageCode in interface IValueFormatDefinition
      Returns:
      the language code of the language that should be used for language specific symbols.
    • getPattern

      public String getPattern()
      This method returns the actual value format pattern that should be used by the value format.
      Specified by:
      getPattern in interface IValueFormatDefinition
      Returns:
      the actual value format pattern that should be used by the value format.