Class XsdDateValueFormat

java.lang.Object
com.aquima.interactions.communication.impl.XsdDateValueFormat
All Implemented Interfaces:
IValueFormat, IValueMask, Serializable

public class XsdDateValueFormat extends Object implements IValueFormat
Special format for xsd dates that ignores the timezone because this is not supported
Since:
8.4.5
Author:
d.roest
See Also:
  • Constructor Details

    • XsdDateValueFormat

      public XsdDateValueFormat(String name, Locale locale)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IValueMask
      This method returns the name of the value format.
      Specified by:
      getName in interface IValueMask
      Returns:
      the name of the value format.
    • format

      public String format(IPrimitiveValue primitiveValue)
      Description copied from interface: IValueMask
      This method formats the provided value to a string.
      Specified by:
      format in interface IValueMask
      Parameters:
      primitiveValue - The value that should be converted to a string.
      Returns:
      String representation of the primitive value.
    • parse

      public IPrimitiveValue parse(String str)
      Description copied from interface: IValueFormat
      This method parses the string to a primitive value.
      Specified by:
      parse in interface IValueFormat
      Parameters:
      str - The string that should be parsed.
      Returns:
      The primitive value for the string.