|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.DOMPatternImp
This Class implemented the DOMpattern Interface.
Field Summary | |
protected RootNode |
rootNode
The root of the tree. |
Constructor Summary | |
DOMPatternImp()
The default DOMPatternImp constructor. |
|
DOMPatternImp(RootNode root)
The DOMPatternImp constructor. |
Method Summary | |
void |
addNode(DOMPatternNode newNode,
DOMPatternNode parentNode)
Add a new parent node for a given DOMPatternNode node. |
boolean |
containsColumn(java.lang.String columnName)
Test to see if this DOMPattern contains a specific column name in its pattern tree. |
java.lang.String[] |
getColumnNames()
Return the columnNames associated with this DomPatternNode use the toListPattern method which traverses the tree but toListPattern produces a Vector with both the tagNames and columnNames in it, so we need to remove the tagNames Therefore, create a new Vector which just has a string representation of the columnNames of the ListPattern |
RootNode |
getRoot()
Get the root node of this DOMTree. |
boolean |
isInTree(DOMPatternNode node)
Check the tree for a specific node |
void |
removeNode(DOMPatternNode node)
Delete the given DOMPatternNode. |
void |
setRoot(RootNode root)
Set root node of DOMPattern. |
java.lang.String |
toIndentString()
Get the indented print output of the result. |
java.lang.String |
toIndentString(DOMPatternNode rn)
Get the indented print output of the result. |
ListPattern |
toListPattern(DOMPatternNode node)
Convert the tree into a list by extracting the TagName and TagValue. |
java.lang.String |
toString()
Convert the tree into a String. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected RootNode rootNode
Constructor Detail |
public DOMPatternImp()
public DOMPatternImp(RootNode root)
root
- The root of DOMPatterm.Method Detail |
public void addNode(DOMPatternNode newNode, DOMPatternNode parentNode)
parent
- The parent node it attached to.child
- The child node attached.public boolean containsColumn(java.lang.String columnName)
columnName
- The column name searching for.public java.lang.String[] getColumnNames()
public RootNode getRoot()
public boolean isInTree(DOMPatternNode node)
node
- the node you are looking for in the treepublic void removeNode(DOMPatternNode node)
node
- the to-be-deleted child node.public void setRoot(RootNode root)
new_root
- The new root node.public java.lang.String toIndentString()
public java.lang.String toIndentString(DOMPatternNode rn)
public ListPattern toListPattern(DOMPatternNode node)
node
- The DOMPatternNode translate for.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |