com.japisoft.fastparser.dom
Class DomNodeFactory

java.lang.Object
  |
  +--com.japisoft.fastparser.dom.DomNodeFactory
All Implemented Interfaces:
NodeFactory

public class DomNodeFactory
extends java.lang.Object
implements NodeFactory

Node factory for DOM

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT
See Also:
NodeFactory

Constructor Summary
DomNodeFactory()
           
 
Method Summary
 MutableNode getCommentNode(java.lang.String comment)
           
static NodeFactory getFactory()
           
 MutableNode getTagNode(java.lang.String tag)
           
 MutableNode getTextNode(java.lang.String text)
           
 void setRefDocument(Document doc)
          Specified the reference document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomNodeFactory

public DomNodeFactory()
Method Detail

setRefDocument

public void setRefDocument(Document doc)
Description copied from interface: NodeFactory
Specified the reference document

Specified by:
setRefDocument in interface NodeFactory

getFactory

public static NodeFactory getFactory()
Returns:
a single instance of the node factory

getTextNode

public MutableNode getTextNode(java.lang.String text)
Specified by:
getTextNode in interface NodeFactory
Returns:
a text node

getTagNode

public MutableNode getTagNode(java.lang.String tag)
Specified by:
getTagNode in interface NodeFactory
Returns:
a tag node

getCommentNode

public MutableNode getCommentNode(java.lang.String comment)
Specified by:
getCommentNode in interface NodeFactory
Returns:
a comment node