org.dom4j.dom
Class DOMDocumentFactory

java.lang.Object
  extended byorg.dom4j.DocumentFactory
      extended byorg.dom4j.dom.DOMDocumentFactory
All Implemented Interfaces:
org.w3c.dom.DOMImplementation, NodeFactory, java.io.Serializable, XPathFactory

public class DOMDocumentFactory
extends DocumentFactory
implements org.w3c.dom.DOMImplementation

DOMDocumentFactory is a factory of DOM4J objects which implement the W3C DOM API.

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

Field Summary
 
Fields inherited from class org.dom4j.DocumentFactory
cache
 
Constructor Summary
DOMDocumentFactory()
           
 
Method Summary
protected  DOMDocumentType asDocumentType(org.w3c.dom.DocumentType documentType)
           
 Attribute createAttribute(Element owner, QName qname, java.lang.String value)
           
 CDATA createCDATA(java.lang.String text)
           
 Comment createComment(java.lang.String text)
           
 DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 Document createDocument()
           
 org.w3c.dom.Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType documentType)
           
 org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
           
 Element createElement(QName qname)
           
 Element createElement(QName qname, int attributeCount)
           
 Entity createEntity(java.lang.String name)
           
 Entity createEntity(java.lang.String name, java.lang.String text)
           
 Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
           
 ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map data)
           
 ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
           
 Text createText(java.lang.String text)
           
static DocumentFactory getInstance()
          Access to the singleton instance of this factory.
 boolean hasFeature(java.lang.String feature, java.lang.String version)
           
 
Methods inherited from class org.dom4j.DocumentFactory
createAttribute, createDocument, createElement, createElement, createPattern, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createXPath, createXPath, createXPathFilter, createXPathFilter, getNamespace, getNoNamespace, getQNames, getXmlNameSpace, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMDocumentFactory

public DOMDocumentFactory()
Method Detail

getInstance

public static DocumentFactory getInstance()

Access to the singleton instance of this factory.

Returns:
the default singleon instance

createDocument

public Document createDocument()
Specified by:
createDocument in interface NodeFactory
Overrides:
createDocument in class DocumentFactory

createDocType

public DocumentType createDocType(java.lang.String name,
                                  java.lang.String publicId,
                                  java.lang.String systemId)
Specified by:
createDocType in interface NodeFactory
Overrides:
createDocType in class DocumentFactory

createElement

public Element createElement(QName qname)
Specified by:
createElement in interface NodeFactory
Overrides:
createElement in class DocumentFactory

createElement

public Element createElement(QName qname,
                             int attributeCount)

createAttribute

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

createCDATA

public CDATA createCDATA(java.lang.String text)
Specified by:
createCDATA in interface NodeFactory
Overrides:
createCDATA in class DocumentFactory

createComment

public Comment createComment(java.lang.String text)
Specified by:
createComment in interface NodeFactory
Overrides:
createComment in class DocumentFactory

createText

public Text createText(java.lang.String text)
Specified by:
createText in interface NodeFactory
Overrides:
createText in class DocumentFactory

createEntity

public Entity createEntity(java.lang.String name)

createEntity

public Entity createEntity(java.lang.String name,
                           java.lang.String text)
Specified by:
createEntity in interface NodeFactory
Overrides:
createEntity in class DocumentFactory

createNamespace

public Namespace createNamespace(java.lang.String prefix,
                                 java.lang.String uri)
Specified by:
createNamespace in interface NodeFactory
Overrides:
createNamespace in class DocumentFactory

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                         java.lang.String data)
Specified by:
createProcessingInstruction in interface NodeFactory
Overrides:
createProcessingInstruction in class DocumentFactory

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                         java.util.Map data)
Specified by:
createProcessingInstruction in interface NodeFactory
Overrides:
createProcessingInstruction in class DocumentFactory

hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)
Specified by:
hasFeature in interface org.w3c.dom.DOMImplementation

createDocumentType

public org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName,
                                                   java.lang.String publicId,
                                                   java.lang.String systemId)
                                            throws org.w3c.dom.DOMException
Specified by:
createDocumentType in interface org.w3c.dom.DOMImplementation
Throws:
org.w3c.dom.DOMException

createDocument

public org.w3c.dom.Document createDocument(java.lang.String namespaceURI,
                                           java.lang.String qualifiedName,
                                           org.w3c.dom.DocumentType documentType)
                                    throws org.w3c.dom.DOMException
Specified by:
createDocument in interface org.w3c.dom.DOMImplementation
Throws:
org.w3c.dom.DOMException

asDocumentType

protected DOMDocumentType asDocumentType(org.w3c.dom.DocumentType documentType)


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.