com.japisoft.fastparser.node
Class NodeFactoryImpl

java.lang.Object
  |
  +--com.japisoft.fastparser.node.NodeFactoryImpl
All Implemented Interfaces:
NodeFactory

public class NodeFactoryImpl
extends java.lang.Object
implements NodeFactory

Factory for building node.

Author:
(c) 2002-2003 JAPISOFT
See Also:
MutableNode, SimpleNode, NodeFactory

Constructor Summary
NodeFactoryImpl()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactoryImpl

public NodeFactoryImpl()
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