edu.wpi.cs.dsrg.xmldb.xat.common.bindingtree
Class BindingTree
java.lang.Object
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.DOMPatternImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.bindingtree.BindingTree
- public class BindingTree
- extends DOMPatternImp
This Class defines a tree representing a value in the Binding Table
It is composed of following type of nodes:
Tag Node.
Attr Node.
ColumnName Node.
Text Node.
NavStep Node.
TextStep Node.
Function Node.
UnnestStep Node.
It used for Nav/Tagger cancel out. It reused major code from DOMPattern.
- Since:
- 1.0
- See Also:
- Serialized Form
Constructor Summary |
BindingTree()
The default BindingTree constructor. |
BindingTree(NavigationStep[] value)
This method takes a NavigationStep array and construct a BindingTree using it. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
BindingTree
public BindingTree()
- The default BindingTree constructor.
- Since:
- 1.0
BindingTree
public BindingTree(NavigationStep[] value)
- This method takes a NavigationStep array and construct a BindingTree using it.
- Parameters:
value
- The NavigationStep array to construct a BindingTree.- Since:
- 1.0
reduce
public void reduce()
- Minimize the BindingTree to do the cancel cout.
- Returns:
- void
- Since:
- 1.0
removeSubtree
public void removeSubtree(DOMPatternNode subroot)
- Remove the subtree identified by the given subroot.
- Parameters:
subroot
- The root of the subtree removing.- Returns:
- void
- Since:
- 1.0
toNavigationStep
public NavigationStep[] toNavigationStep()
- Convert current BindingTree as an Array of NavigationStep.
- Returns:
- NavigationStep[] The convert result.
- Since:
- 1.0
toString
public java.lang.String toString()
- Convert this BindingTree into a String.
- Overrides:
- toString in class DOMPatternImp
- Returns:
- String The result of converting.
- Since:
- 1.0
toString
public java.lang.String toString(DOMPatternNode node,
int level)
- Display this the tree with given DOMPatternNode as root.
- Parameters:
node
- The root node of the tree.level
- The depth level we will look at.- Returns:
- String The convert result
- Since:
- 1.0