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 |
---|---|
protected static DatatypeDocumentFactory |
singleton
The Singleton instance
|
cache
Constructor and Description |
---|
DatatypeDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
Attribute |
createAttribute(Element owner,
QName qname,
java.lang.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.
|
void |
loadSchema(Document schemaDocument,
Namespace targetNamespace) |
protected void |
loadSchema(Document document,
java.lang.String schemaInstanceURI) |
protected void |
loadSchema(Document document,
java.lang.String schemaInstanceURI,
Namespace namespace) |
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
protected static transient DatatypeDocumentFactory singleton
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 elementelementQName
- DOCUMENT ME!public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
createAttribute
in class DocumentFactory
protected void loadSchema(Document document, java.lang.String schemaInstanceURI)