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.
- Version:
- 1.0
- Author:
- (c) 2002-2003 JAPISOFT
- See Also:
MutableNode
,
SimpleNode
,
NodeFactory
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeFactoryImpl
public NodeFactoryImpl()
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