org.dom4j.datatype
Class DatatypeDocumentFactory

java.lang.Object
  extended byorg.dom4j.DocumentFactory
      extended byorg.dom4j.datatype.DatatypeDocumentFactory
All Implemented Interfaces:
java.io.Serializable

public class DatatypeDocumentFactory
extends DocumentFactory

DatatypeDocumentFactory is a factory of XML objects which support the XML Schema Data Types specification.

Version:
$Revision: 1.3 $
Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.dom4j.DocumentFactory
cache
 
Constructor Summary
DatatypeDocumentFactory()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.dom4j.DocumentFactory
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatatypeDocumentFactory

public DatatypeDocumentFactory()
Method Detail

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.

getElementFactory

public DatatypeElementFactory getElementFactory(QName elementQName)
Registers the given DatatypeElementFactory for the given <element> schema element


createAttribute

public Attribute createAttribute(Element owner,
                                 QName qname,
                                 java.lang.String value)
Overrides:
createAttribute in class DocumentFactory

loadSchema

protected void loadSchema(Document document,
                          java.lang.String schemaInstanceURI)


Copyright © 2001 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge Logo