org.dom4j.io
Class DOMReader

java.lang.Object
  extended byorg.dom4j.io.DOMReader

public class DOMReader
extends java.lang.Object

DOMReader navigates a W3C DOM tree and creates a DOM4J tree from it.

Version:
$Revision: 1.4 $
Author:
James Strachan

Constructor Summary
DOMReader()
           
DOMReader(DocumentFactory factory)
          Deprecated. Use DOMReader(NodeFactory) instead.
DOMReader(NodeFactory factory)
           
 
Method Summary
protected  void clearNamespaceStack()
           
protected  Document createDocument()
           
 DocumentFactory getDocumentFactory()
          Deprecated. Use getNodeFactory() instead
protected  Namespace getNamespace(java.lang.String prefix, java.lang.String uri)
           
 NodeFactory getNodeFactory()
           
 Document read(org.w3c.dom.Document domDocument)
           
protected  void readElement(org.w3c.dom.Node node, Branch current)
           
protected  void readTree(org.w3c.dom.Node node, Branch current)
           
 void setDocumentFactory(DocumentFactory factory)
          Deprecated. Use setNodeFactory(NodeFactory) instead.
 void setNodeFactory(NodeFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMReader

public DOMReader()

DOMReader

public DOMReader(DocumentFactory factory)
Deprecated. Use DOMReader(NodeFactory) instead.


DOMReader

public DOMReader(NodeFactory factory)
Method Detail

getDocumentFactory

public DocumentFactory getDocumentFactory()
Deprecated. Use getNodeFactory() instead

Returns:
the DocumentFactory used to create document objects

getNodeFactory

public NodeFactory getNodeFactory()

setDocumentFactory

public void setDocumentFactory(DocumentFactory factory)
Deprecated. Use setNodeFactory(NodeFactory) instead.

This sets the DocumentFactory used to create new documents. This method allows the building of custom DOM4J tree objects to be implemented easily using a custom derivation of DocumentFactory

Parameters:
factory - DocumentFactory used to create DOM4J objects

setNodeFactory

public void setNodeFactory(NodeFactory factory)

read

public Document read(org.w3c.dom.Document domDocument)

readTree

protected void readTree(org.w3c.dom.Node node,
                        Branch current)

readElement

protected void readElement(org.w3c.dom.Node node,
                           Branch current)

getNamespace

protected Namespace getNamespace(java.lang.String prefix,
                                 java.lang.String uri)

createDocument

protected Document createDocument()

clearNamespaceStack

protected void clearNamespaceStack()


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