|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.ResultNode
public class ResultNode
The ResultNode
class holds the result of the execution of
DocHelper. A tree structure is made with the match results for a document
definition execution. The tree structure is then passed to a Rendered
For Output Creation. The tree may be modified by Processors before
beign passed for Rendering.
Field Summary | |
---|---|
private java.util.ArrayList<ResultNode> |
_children
Node Children |
java.lang.String |
_name
Node name. |
private java.util.HashMap |
_params
Parameters available to node. |
private java.lang.String |
_value
Node value. |
Constructor Summary | |
---|---|
ResultNode(java.lang.String value,
java.util.HashMap params,
java.lang.String name)
Creates a new instance of ResultNode |
Method Summary | |
---|---|
void |
addChild(ResultNode node)
Add a child to this node. |
ResultNode |
find(java.lang.String nodeName)
Retrieve the ResultNode which
_name equals to nodeName . |
java.util.List<ResultNode> |
getChildren()
Return the list of children if any in this node. |
java.util.HashMap |
getParams()
Retrieve the params from the node |
java.lang.String |
getValue()
Return the value of the node if any |
boolean |
hasLeaf()
Retrieve a boolean that indicates whether this node has leafs as children. |
boolean |
isLeaf()
Retrieve a boolean that indicates whether this node is a Leaf |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap _params
private java.util.ArrayList<ResultNode> _children
private java.lang.String _value
public java.lang.String _name
Constructor Detail |
---|
public ResultNode(java.lang.String value, java.util.HashMap params, java.lang.String name)
value
- params
- name
- Method Detail |
---|
public void addChild(ResultNode node)
node
- ResultNode child to add.public java.util.List<ResultNode> getChildren()
public java.lang.String getValue()
public java.util.HashMap getParams()
public ResultNode find(java.lang.String nodeName)
ResultNode
which
_name
equals to nodeName
.
public boolean hasLeaf()
public boolean isLeaf()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |