Class BuiltInType


  • public abstract class BuiltInType
    extends java.lang.Object
    This non-instantiable class acts as a register of Schema objects containing all the built-in types: that is, the types defined in the "xs" namespace.

    Previously called BuiltInSchemaFactory; but its original function has largely been moved to the two classes BuiltInAtomicType and BuiltInListType

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SchemaType getSchemaType​(int fingerprint)
      Get the schema type with a given fingerprint
      static SchemaType getSchemaTypeByLocalName​(java.lang.String name)
      Get the schema type with a given local name
      static void register​(int fingerprint, SchemaType type)
      Method for internal use to register a built in type with this class
      • Methods inherited from class java.lang.Object

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

      • getSchemaType

        public static SchemaType getSchemaType​(int fingerprint)
        Get the schema type with a given fingerprint
        Parameters:
        fingerprint - the fingerprint representing the name of the required type
        Returns:
        the SchemaType object representing the given type, if known, otherwise null
      • getSchemaTypeByLocalName

        public static SchemaType getSchemaTypeByLocalName​(java.lang.String name)
        Get the schema type with a given local name
        Parameters:
        name - the local name of the required type
        Returns:
        the SchemaType object representing the given type, if known, otherwise null
      • register

        public static void register​(int fingerprint,
                                    SchemaType type)
        Method for internal use to register a built in type with this class
        Parameters:
        fingerprint - the fingerprint of the type name
        type - the SchemaType representing the built in type