|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This Class defines the structure of nodes may appear in DOMPattern. Different combinations of the tagName and tagValue has different meanings: tagName tagValue Attr: name of attribute value of attribute. Element: tag name null Text: #text content of the text node. Column: #col ColumnName. !NOTE! In order to support the variable name as the attribute name, value and tag name, the Attr.tagName, Attr.tagValue and Element.tagName Can be of type ColumnName.
Method Summary | |
void |
addChild(DOMPatternNode new_child)
Add one child to this node. |
void |
addChild(DOMPatternNode new_child,
int position)
Add a child to the node at a certain position |
int |
deleteChild(DOMPatternNode child)
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_child)
Set a specific child to be a new child node. |
void |
setParent(DOMPatternNode new_parent)
Set the parent node of this node. |
void |
setTagName(java.lang.String name)
Set the tag name of this DOMPatternNode. |
void |
setTagValue(NavigationStep[] param)
Set the tag value of DOMPatternNode. |
void |
setTagValue(java.lang.String value)
Construct a NavigationStep using given value string. |
Method Detail |
public void addChild(DOMPatternNode new_child)
new_child
- The new child node adding to.public void addChild(DOMPatternNode new_child, int position)
new_child
- The new child node adding to.position
- The position for this new node.public int deleteChild(DOMPatternNode child)
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_child)
position
- The position of the child node.new_child
- The new child node.public void setParent(DOMPatternNode new_parent)
new_parent
- The new parent of this node.public void setTagName(java.lang.String name)
name
- The name for tag.public void setTagValue(NavigationStep[] param)
param
- The tag value of this DOMPatternNode.public void setTagValue(java.lang.String value)
value
- The string of new value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |