Class DefaultValue

  • All Implemented Interfaces:
    IBuiltInTypeValue

    public class DefaultValue
    extends java.lang.Object
    implements IBuiltInTypeValue
    Default converter between predefined Value types where no additional processing is required.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultValue​(Value.Type type)
      Constructs the instance type.
    • Constructor Detail

      • DefaultValue

        public DefaultValue​(Value.Type type)
        Constructs the instance type.
        Parameters:
        type - The Value type.
    • Method Detail

      • convertBuiltInTypeToValue

        public Value convertBuiltInTypeToValue​(java.lang.String valueString)
                                        throws java.text.ParseException
        Converts a Built-in Type to Value.
        Specified by:
        convertBuiltInTypeToValue in interface IBuiltInTypeValue
        Parameters:
        valueString - The Built-in Type value string.
        Returns:
        The converted Value.
        Throws:
        java.text.ParseException - Thrown when conversion is not possible or a parsing error occurs.
      • getTemplate

        public java.lang.String getTemplate​(Facet[] facets)
        Creates a sample or template string for the data to place in XML.
        Specified by:
        getTemplate in interface IBuiltInTypeValue
        Parameters:
        facets - The facets.
        Returns:
        The template string.