public class DatatypeDocumentFactory extends DocumentFactory
DatatypeDocumentFactory
is a factory of XML objects which
support the
XML Schema Data Types
specification.
Modifier and Type | Field and Description |
---|---|
private boolean |
autoLoadSchema
If schemas are automatically loaded when parsing instance documents
|
private static boolean |
DO_INTERN_QNAME |
private SchemaParser |
schemaBuilder
The builder of XML Schemas
|
(package private) static DatatypeDocumentFactory |
singleton
The Singleton instance
|
private SAXReader |
xmlSchemaReader
reader of XML Schemas
|
private static Namespace |
XSI_NAMESPACE |
private static QName |
XSI_NO_SCHEMA_LOCATION |
private static QName |
XSI_SCHEMA_LOCATION |
cache
Constructor and Description |
---|
DatatypeDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
Attribute |
createAttribute(Element owner,
QName qname,
String value) |
DatatypeElementFactory |
getElementFactory(QName elementQName)
Registers the given
DatatypeElementFactory for the given
<element> schema element |
static DocumentFactory |
getInstance()
Access to the singleton instance of this factory.
|
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.
|
protected void |
loadSchema(Document document,
String schemaInstanceURI) |
createAttribute, createCDATA, createComment, createDocType, 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
private static final boolean DO_INTERN_QNAME
static transient DatatypeDocumentFactory singleton
private static final Namespace XSI_NAMESPACE
private static final QName XSI_SCHEMA_LOCATION
private static final QName XSI_NO_SCHEMA_LOCATION
private SchemaParser schemaBuilder
private SAXReader xmlSchemaReader
private boolean autoLoadSchema
public DatatypeDocumentFactory()
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public void loadSchema(Document schemaDocument)
schemaDocument
- is an XML Schema Document instance.public DatatypeElementFactory getElementFactory(QName elementQName)
DatatypeElementFactory
for the given
<element> schema elementpublic Attribute createAttribute(Element owner, QName qname, String value)
createAttribute
in class DocumentFactory
protected void loadSchema(Document document, String schemaInstanceURI)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses