edu.buffalo.nsf.xmlcqa.tree
Class NodeCollector2
java.lang.Object
edu.buffalo.nsf.xmlcqa.tree.NodeCollector2
- All Implemented Interfaces:
- NodeCollector
- public class NodeCollector2
- extends java.lang.Object
- implements NodeCollector
- Author:
- staworko
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
child
protected TreeNode child
cm
protected CollectionManager cm
nodes
protected java.util.Collection[] nodes
offspring
protected java.util.Collection[] offspring
path
protected Query path
root
protected TreeNode root
NodeCollector2
public NodeCollector2(CollectionManager cm)
NodeCollector2
public NodeCollector2(CollectionManager cm,
Query path,
TreeNode root)
NodeCollector2
public NodeCollector2(NodeCollector2 nc,
TreeNode root)
add
protected void add(int i,
java.util.Collection[] ns,
java.util.Collection c)
add
protected void add(int i,
java.util.Collection[] ns,
TreeNode node)
cloneNC
public NodeCollector cloneNC()
cut
public void cut(NodeCollector2 nc)
dropOffspring
public void dropOffspring()
getNodes
public java.util.Collection getNodes(int i)
- Specified by:
getNodes
in interface NodeCollector
getPath
public Query getPath()
- Specified by:
getPath
in interface NodeCollector
getRoot
public TreeNode getRoot()
- Specified by:
getRoot
in interface NodeCollector
hookNewOffspring
protected void hookNewOffspring()
hookOffspring
protected void hookOffspring(NodeCollector2 sibling)
initOffspring
protected void initOffspring(NodeCollector sibling)
joinOffspring
protected void joinOffspring(NodeCollector sibling)
substitute
protected java.util.Collection substitute(java.util.Collection nodes,
TreeNode root)
toString
public java.lang.String toString()