org.dom4j.datatype

Class DatatypeDocumentFactory

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 DatatypeDocumentFactorysingleton
The Singleton instance
Constructor Summary
DatatypeDocumentFactory()
Method Summary
AttributecreateAttribute(Element owner, QName qname, String value)
DatatypeElementFactorygetElementFactory(QName elementQName)
Registers the given DatatypeElementFactory for the given <element> schema element
static DocumentFactorygetInstance()

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

Field Detail

singleton

protected static transient DatatypeDocumentFactory singleton
The Singleton instance

Constructor Detail

DatatypeDocumentFactory

public DatatypeDocumentFactory()

Method Detail

createAttribute

public Attribute createAttribute(Element owner, QName qname, String value)

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.

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

public void loadSchema(Document schemaDocument, Namespace targetNamespace)

loadSchema

protected void loadSchema(Document document, String schemaInstanceURI)

loadSchema

protected void loadSchema(Document document, String schemaInstanceURI, Namespace namespace)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge