| Package | Description |
|---|---|
| org.apache.jasper.xmlparser |
| Modifier and Type | Field | Description |
|---|---|---|
protected TreeNode |
TreeNode.parent |
The parent node of this node.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected ArrayList<TreeNode> |
TreeNode.children |
The children of this node, instantiated only if required.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected TreeNode |
ParserUtils.convert(TreeNode parent,
Node node) |
Create and return a TreeNode that corresponds to the specified Node,
including processing all of the attributes and children nodes.
|
TreeNode |
TreeNode.findChild(String name) |
Return the first child node of this node with the specified name,
if there is one; otherwise, return
null. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputStream is) |
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputStream is,
boolean validate) |
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputSource is) |
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
ParserUtils.parseXMLDocument(String uri,
InputSource is,
boolean validate) |
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
| Modifier and Type | Method | Description |
|---|---|---|
Iterator<TreeNode> |
TreeNode.findChildren() |
Return an Iterator of all children of this node.
|
Iterator<TreeNode> |
TreeNode.findChildren(String name) |
Return an Iterator over all children of this node that have the
specified name.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
TreeNode.addChild(TreeNode node) |
Add a new child node to this node.
|
protected TreeNode |
ParserUtils.convert(TreeNode parent,
Node node) |
Create and return a TreeNode that corresponds to the specified Node,
including processing all of the attributes and children nodes.
|
void |
TreeNode.removeNode(TreeNode node) |
Remove a child node from this node, if it is one.
|
protected void |
TreeNode.toString(StringBuilder sb,
int indent,
TreeNode node) |
Append to the specified StringBuilder a character representation of
this node, with the specified amount of indentation.
|
| Constructor | Description |
|---|---|
TreeNode(String name,
TreeNode parent) |
Construct a new node with the specified parent.
|
Copyright © 2019 Oracle. All rights reserved.