ResultNode class holds the result of the execution of DocHelper.
More...

Public Member Functions | |
| ResultNode (String value, HashMap params, String name) | |
| Creates a new instance of ResultNode. | |
| void | addChild (ResultNode node) |
| Add a child to this node. | |
| List< ResultNode > | getChildren () |
| Return the list of children if any in this node. | |
| String | getValue () |
| Return the value of the node if any. | |
| HashMap | getParams () |
| Retrieve the params from the node. | |
| ResultNode | find (String nodeName) |
Retrieve the ResultNode which _name equals to nodeName. | |
| 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. | |
| String | toString () |
Public Attributes | |
| String | _name |
| Node name. | |
Private Attributes | |
| HashMap | _params |
| Parameters available to node. | |
| ArrayList< ResultNode > | _children |
| Node Children. | |
| String | _value |
| Node value. | |
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.
Definition at line 26 of file ResultNode.java.
| dochelper.ResultNode.ResultNode | ( | String | value, | |
| HashMap | params, | |||
| String | name | |||
| ) |
Creates a new instance of ResultNode.
| value | ||
| params | ||
| name |
Definition at line 53 of file ResultNode.java.
| void dochelper.ResultNode.addChild | ( | ResultNode | node | ) |
Add a child to this node.
| node | ResultNode child to add. |
Definition at line 65 of file ResultNode.java.

| List<ResultNode> dochelper.ResultNode.getChildren | ( | ) |
Return the list of children if any in this node.
Definition at line 79 of file ResultNode.java.

| String dochelper.ResultNode.getValue | ( | ) |
Return the value of the node if any.
Definition at line 89 of file ResultNode.java.

| HashMap dochelper.ResultNode.getParams | ( | ) |
Retrieve the params from the node.
Definition at line 99 of file ResultNode.java.

| ResultNode dochelper.ResultNode.find | ( | String | nodeName | ) |
Retrieve the ResultNode which _name equals to nodeName.
Definition at line 110 of file ResultNode.java.


| boolean dochelper.ResultNode.hasLeaf | ( | ) |
Retrieve a boolean that indicates whether this node has leafs as children.
This method will return true if at least one of the children of this node is a leaf.
Definition at line 144 of file ResultNode.java.

| boolean dochelper.ResultNode.isLeaf | ( | ) |
Retrieve a boolean that indicates whether this node is a Leaf.
Definition at line 167 of file ResultNode.java.


| String dochelper.ResultNode.toString | ( | ) |
Definition at line 172 of file ResultNode.java.
HashMap dochelper.ResultNode._params [private] |
ArrayList<ResultNode> dochelper.ResultNode._children [private] |
String dochelper.ResultNode._value [private] |
| String dochelper.ResultNode._name |
1.5.6