Package org.dom4j.datatype
Class DatatypeDocumentFactory
java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.datatype.DatatypeDocumentFactory
- All Implemented Interfaces:
Serializable
DatatypeDocumentFactory is a factory of XML objects which
support the XML Schema Data Types
specification.
- Version:
- $Revision: 1.9 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIf schemas are automatically loaded when parsing instance documentsprivate static final booleanprivate SchemaParserThe builder of XML Schemasprotected static DatatypeDocumentFactoryThe Singleton instanceprivate SAXReaderreader of XML Schemasprivate static final Namespaceprivate static final QNameprivate static final QNameFields inherited from class org.dom4j.DocumentFactory
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttribute(Element owner, QName qname, String value) getElementFactory(QName elementQName) Registers the givenDatatypeElementFactoryfor the given <element> schema elementstatic DocumentFactoryAccess to the singleton instance of this factory.voidloadSchema(Document schemaDocument) Loads the given XML Schema document into this factory so schema-aware Document, Elements and Attributes will be created by this factory.protected voidloadSchema(Document document, String schemaInstanceURI) protected voidloadSchema(Document document, String schemaInstanceURI, Namespace namespace) voidloadSchema(Document schemaDocument, Namespace targetNamespace) Methods inherited from class org.dom4j.DocumentFactory
createAttribute, createCDATA, createComment, createDocType, createDocument, createDocument, createDocument, createElement, createElement, createElement, createEntity, createNamespace, createPattern, createProcessingInstruction, createProcessingInstruction, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createText, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
-
Field Details
-
DO_INTERN_QNAME
private static final boolean DO_INTERN_QNAME- See Also:
-
singleton
The Singleton instance -
XSI_NAMESPACE
-
XSI_SCHEMA_LOCATION
-
XSI_NO_SCHEMA_LOCATION
-
schemaBuilder
The builder of XML Schemas -
xmlSchemaReader
reader of XML Schemas -
autoLoadSchema
private boolean autoLoadSchemaIf schemas are automatically loaded when parsing instance documents
-
-
Constructor Details
-
DatatypeDocumentFactory
public DatatypeDocumentFactory()
-
-
Method Details
-
getInstance
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
loadSchema
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
-
getElementFactory
Registers the givenDatatypeElementFactoryfor the given <element> schema element- Parameters:
elementQName- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createAttribute
- Overrides:
createAttributein classDocumentFactory
-
loadSchema
-
loadSchema
-