|
|||||||||
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.dompattern.DOMPatternNodeImp
This Class implement the DOMPatternNode interface.
Field Summary | |
protected boolean |
canceledOut
Indicate if this DOMpatternNode is canceled out or not. |
protected java.util.Vector |
children
The children of this DOMPatternNode. |
protected DOMPatternNode |
parent
The parent of this DOMPatternNode. |
protected java.lang.String |
tagName
The tag name of this DOMPatternNode. |
protected java.lang.Object |
tagValue
The tag value of this DOMPatternNode. |
Constructor Summary | |
DOMPatternNodeImp()
|
|
DOMPatternNodeImp(NavigationStep[] value)
|
|
DOMPatternNodeImp(java.lang.String name)
|
|
DOMPatternNodeImp(java.lang.String name,
NavigationStep[] value)
|
|
DOMPatternNodeImp(java.lang.String name,
java.lang.String value)
|
Method Summary | |
void |
addChild(DOMPatternNode new_node)
Add one child to this node. |
void |
addChild(DOMPatternNode new_node,
int position)
Add a child to the node at a certain position |
int |
deleteChild(DOMPatternNode node)
Delete a child from this node. |
DOMPatternNode |
getChild(int position)
Get a specific child node of this node by their position. |
DOMPatternNode[] |
getChildren()
Get all the children nodes of this node. |
DOMPatternNode |
getParent()
Get the parent node of this node. |
java.lang.String |
getTagName()
Get the tag name of this DOMPatternNode. |
java.lang.Object |
getTagValue()
Get the tag value of this DOMPatternNode. |
boolean |
isCanceledOut()
Check if the DOMPattern node has been canceled out. |
void |
setCanceledOut(boolean newCanceledOut)
Set the canceledOut property. |
void |
setChild(int position,
DOMPatternNode new_node)
Set a specific child to be a new child node. |
void |
setParent(DOMPatternNode parentNode)
Set the parent node of this node. |
void |
setTagName(java.lang.String newTagName)
Set the tag name of this DOMPatternNode. |
void |
setTagValue(NavigationStep[] newTagValue)
Set the tag value of DOMPatternNode. |
void |
setTagValue(java.lang.String newTagValue)
Construct a NavigationStep using given value string. |
java.lang.String |
toString()
Convert the tagValue of the node as a String. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected DOMPatternNode parent
protected java.util.Vector children
protected java.lang.Object tagValue
protected java.lang.String tagName
protected boolean canceledOut
Constructor Detail |
public DOMPatternNodeImp()
public DOMPatternNodeImp(NavigationStep[] value)
public DOMPatternNodeImp(java.lang.String name)
public DOMPatternNodeImp(java.lang.String name, java.lang.String value)
public DOMPatternNodeImp(java.lang.String name, NavigationStep[] value)
Method Detail |
public void addChild(DOMPatternNode new_node)
new_child
- The new child node adding to.public void addChild(DOMPatternNode new_node, int position)
new_child
- The new child node adding to.position
- The position for this new node.public int deleteChild(DOMPatternNode node)
child
- The to-be-deleted child.public DOMPatternNode getChild(int position)
position
- The position of the child node.public DOMPatternNode[] getChildren()
public DOMPatternNode getParent()
DOMPatternNode
- The parent node.public java.lang.String getTagName()
public java.lang.Object getTagValue()
public boolean isCanceledOut()
public void setCanceledOut(boolean newCanceledOut)
newCanceledOut
- The boolean indicate if the DOMPattern Node is canceled or not.public void setChild(int position, DOMPatternNode new_node)
position
- The position of the child node.new_child
- The new child node.public void setParent(DOMPatternNode parentNode)
new_parent
- The new parent of this node.public void setTagName(java.lang.String newTagName)
name
- The name for tag.public void setTagValue(NavigationStep[] newTagValue)
param
- The tag value of this DOMPatternNode.public void setTagValue(java.lang.String newTagValue)
value
- The string of new value.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |