public class DatatypeDocumentFactory extends DocumentFactory
DatatypeDocumentFactory
is a factory of XML objects which
support the XML Schema Data Types
specification.
Modifier and Type | Field | Description |
---|---|---|
protected static DatatypeDocumentFactory |
singleton |
The Singleton instance
|
cache
Constructor | Description |
---|---|
DatatypeDocumentFactory() |
Modifier and Type | Method | 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.
|
protected void |
loadSchema(Document document,
java.lang.String schemaInstanceURI) |
|
protected void |
loadSchema(Document document,
java.lang.String schemaInstanceURI,
Namespace namespace) |
|
void |
loadSchema(Document schemaDocument,
Namespace targetNamespace) |
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)