org.dom4j.datatype

Class DatatypeDocumentFactory

Implemented Interfaces:
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 $
Author:
James Strachan

Field Summary

protected static DatatypeDocumentFactory
singleton
The Singleton instance

Fields inherited from class org.dom4j.DocumentFactory

cache

Constructor Summary

DatatypeDocumentFactory()

Method Summary

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)
protected void
loadSchema(Document document, String schemaInstanceURI, Namespace namespace)
void
loadSchema(Document schemaDocument, Namespace targetNamespace)

Methods inherited from class org.dom4j.DocumentFactory

createAttribute, 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, getInstance, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs

Field Details

singleton

protected static DatatypeDocumentFactory singleton
The Singleton instance

Constructor Details

DatatypeDocumentFactory

public DatatypeDocumentFactory()

Method Details

createAttribute

public Attribute createAttribute(Element owner,
                                 QName qname,
                                 String value)
Overrides:
createAttribute in interface DocumentFactory

getElementFactory

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

getInstance

public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
Overrides:
getInstance in interface DocumentFactory
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

protected void loadSchema(Document document,
                          String schemaInstanceURI)

loadSchema

protected void loadSchema(Document document,
                          String schemaInstanceURI,
                          Namespace namespace)

loadSchema

public void loadSchema(Document schemaDocument,
                       Namespace targetNamespace)

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge Logo