edu.buffalo.nsf.xmlcqa.tree
Class NodeCollector2

java.lang.Object
  extended byedu.buffalo.nsf.xmlcqa.tree.NodeCollector2
All Implemented Interfaces:
NodeCollector

public class NodeCollector2
extends java.lang.Object
implements NodeCollector

Author:
staworko

Field Summary
protected  TreeNode child
           
protected  CollectionManager cm
           
protected  java.util.Collection[] nodes
           
protected  java.util.Collection[] offspring
           
protected  Query path
           
protected  TreeNode root
           
 
Constructor Summary
NodeCollector2(CollectionManager cm)
           
NodeCollector2(CollectionManager cm, Query path, TreeNode root)
           
NodeCollector2(NodeCollector2 nc, TreeNode root)
           
 
Method Summary
protected  void add(int i, java.util.Collection[] ns, java.util.Collection c)
           
protected  void add(int i, java.util.Collection[] ns, TreeNode node)
           
 NodeCollector cloneNC()
           
 void cut(NodeCollector2 nc)
           
 void dropOffspring()
           
 java.util.Collection getNodes(int i)
           
 Query getPath()
           
 TreeNode getRoot()
           
protected  void hookNewOffspring()
           
protected  void hookOffspring(NodeCollector2 sibling)
           
protected  void initOffspring(NodeCollector sibling)
           
protected  void joinOffspring(NodeCollector sibling)
           
protected  java.util.Collection substitute(java.util.Collection nodes, TreeNode root)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

NodeCollector2

public NodeCollector2(CollectionManager cm)

NodeCollector2

public NodeCollector2(CollectionManager cm,
                      Query path,
                      TreeNode root)

NodeCollector2

public NodeCollector2(NodeCollector2 nc,
                      TreeNode root)
Method Detail

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