Class DatatypeFactory


  • public class DatatypeFactory
    extends java.lang.Object
    The datatype factory for built-in types for XML "anySimpleType" and Value processing.

    The following built-in types are defined (http://www.w3.org/TR/xmlschema-2/):

    • xs:anySimpleType (not handled)
    • xs:boolean
    • xs:base64Binary
    • xs:hexBinary
    • xs:float
    • xs:double
    • xs:anyURI
    • xs:QName
    • xs:NOTATION
    • xs:decimal
    • xs:integer
    • xs:nonPositiveInteger
    • xs:negativeInteger
    • xs:long
    • xs:int
    • xs:short
    • xs:byte
    • xs:nonNegativeInteger
    • xs:positiveInteger
    • xs:unsignedLong
    • xs:unsignedInt
    • xs:unsignedShort
    • xs:unsignedByte
    • xs:string
    • xs:normalizedString
    • xs:token
    • xs:language
    • xs:NMTOKEN
    • xs:NMTOKENS
    • xs:Name
    • xs:NCName
    • xs:ID
    • xs:IDREF
    • xs:IDREFS
    • xs:ENTITY
    • xs:ENTITIES
    • xs:duration
    • xs:dateTime
    • xs:date
    • xs:time
    • xs:gYearMonth
    • xs:gYear
    • xs:gMonthDay
    • xs:gMonth
    • xs:gDay
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      DatatypeFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IBuiltInTypeValue getConverter​(java.lang.String name)
      Gets the mapping interface between the Built-in Type value and a Value.
      static java.lang.String validateNormalizedString​(java.lang.String string)
      Validates a NormalizedString.
      static java.lang.String validateToken​(java.lang.String string)
      Validates a Token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatatypeFactory

        public DatatypeFactory()
    • Method Detail

      • validateNormalizedString

        public static java.lang.String validateNormalizedString​(java.lang.String string)
        Validates a NormalizedString.
        Parameters:
        string - String to validate.
        Returns:
        Error message, or null for valid.
      • validateToken

        public static java.lang.String validateToken​(java.lang.String string)
        Validates a Token.
        Parameters:
        string - String to validate.
        Returns:
        Error message, or null for valid.
      • getConverter

        public static IBuiltInTypeValue getConverter​(java.lang.String name)
        Gets the mapping interface between the Built-in Type value and a Value.
        Parameters:
        name - The Built-in Type name.
        Returns:
        The conversion interface, or null if not found.