Class DatatypeDocumentFactory

  • All Implemented Interfaces:
    java.io.Serializable

    public class DatatypeDocumentFactory
    extends DocumentFactory

    DatatypeDocumentFactory is a factory of XML objects which support the XML Schema Data Types specification.

    Version:
    $Revision: 1.9 $
    See Also:
    Serialized Form
    • Field Detail

      • XSI_NAMESPACE

        private static final Namespace XSI_NAMESPACE
      • XSI_SCHEMA_LOCATION

        private static final QName XSI_SCHEMA_LOCATION
      • XSI_NO_SCHEMA_LOCATION

        private static final QName XSI_NO_SCHEMA_LOCATION
      • schemaBuilder

        private SchemaParser schemaBuilder
        The builder of XML Schemas
      • xmlSchemaReader

        private SAXReader xmlSchemaReader
        reader of XML Schemas
      • autoLoadSchema

        private boolean autoLoadSchema
        If schemas are automatically loaded when parsing instance documents
    • Constructor Detail

      • DatatypeDocumentFactory

        public DatatypeDocumentFactory()
    • Method Detail

      • getInstance

        public static DocumentFactory getInstance()

        Access to the singleton instance of this factory.

        Returns:
        the default singleon instance
      • loadSchema

        public void loadSchema​(Document schemaDocument)
        Loads the given XML Schema document into this factory so schema-aware Document, Elements and Attributes will be created by this factory.
        Parameters:
        schemaDocument - is an XML Schema Document instance.
      • loadSchema

        public void loadSchema​(Document schemaDocument,
                               Namespace targetNamespace)
      • getElementFactory

        public DatatypeElementFactory getElementFactory​(QName elementQName)
        Registers the given DatatypeElementFactory for the given <element> schema element
        Parameters:
        elementQName - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • loadSchema

        protected void loadSchema​(Document document,
                                  java.lang.String schemaInstanceURI)
      • loadSchema

        protected void loadSchema​(Document document,
                                  java.lang.String schemaInstanceURI,
                                  Namespace namespace)