xacute.util
Class NodeFactoryDefaultImpl

java.lang.Object
  |
  +--xacute.util.NodeFactoryDefaultImpl
All Implemented Interfaces:
NodeFactory
Direct Known Subclasses:
NodeFactoryOracle, NodeFactorySun, NodeFactoryXerces, NodeFactoryXerces

public abstract class NodeFactoryDefaultImpl
extends java.lang.Object
implements NodeFactory


Field Summary
protected  xacute.util.DocumentCache cache
           
 
Constructor Summary
NodeFactoryDefaultImpl()
           
 
Method Summary
 void clearDocumentCache()
           
 Node getDocumentRoot(java.lang.String name)
          getting the root node of a given document
abstract  java.lang.String getFactoryName()
           
 Node getInLineXMLRoot(java.lang.String xml)
          transforming a string that represents a piece of XML into a XML document, and returning its root node
 Node makeConstructedNode(java.lang.String name, org.xml.sax.AttributeList atts, java.util.Vector children)
           
abstract  NodeList makeEmptyNodeList()
          provides the way to create NodeList instances
 NodeList makeNodeList(Node n)
           
 NodeList makeNodeList(NodeList nl)
           
 Node makeShallowNode(Node n)
           
 Node makeTextNode(java.lang.String text)
          Node constructors for nodes that do not belong to a document
protected abstract  Node parse(org.xml.sax.InputSource is)
          provides the parser to use provides the way to create Node instances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected xacute.util.DocumentCache cache
Constructor Detail

NodeFactoryDefaultImpl

public NodeFactoryDefaultImpl()
Method Detail

getFactoryName

public abstract java.lang.String getFactoryName()
Specified by:
getFactoryName in interface NodeFactory

makeEmptyNodeList

public abstract NodeList makeEmptyNodeList()
provides the way to create NodeList instances
Specified by:
makeEmptyNodeList in interface NodeFactory

parse

protected abstract Node parse(org.xml.sax.InputSource is)
                       throws java.lang.Exception
provides the parser to use provides the way to create Node instances

makeNodeList

public NodeList makeNodeList(Node n)
Specified by:
makeNodeList in interface NodeFactory

makeNodeList

public NodeList makeNodeList(NodeList nl)
Specified by:
makeNodeList in interface NodeFactory

getInLineXMLRoot

public Node getInLineXMLRoot(java.lang.String xml)
                      throws QuiltException
Description copied from interface: NodeFactory
transforming a string that represents a piece of XML into a XML document, and returning its root node
Specified by:
getInLineXMLRoot in interface NodeFactory

getDocumentRoot

public Node getDocumentRoot(java.lang.String name)
                     throws QuiltException
Description copied from interface: NodeFactory
getting the root node of a given document
Specified by:
getDocumentRoot in interface NodeFactory

makeTextNode

public Node makeTextNode(java.lang.String text)
Description copied from interface: NodeFactory
Node constructors for nodes that do not belong to a document
Specified by:
makeTextNode in interface NodeFactory

makeConstructedNode

public Node makeConstructedNode(java.lang.String name,
                                org.xml.sax.AttributeList atts,
                                java.util.Vector children)
Specified by:
makeConstructedNode in interface NodeFactory

makeShallowNode

public Node makeShallowNode(Node n)
Specified by:
makeShallowNode in interface NodeFactory

clearDocumentCache

public void clearDocumentCache()
Specified by:
clearDocumentCache in interface NodeFactory