| Package | Description |
|---|---|
| org.apache.velocity.tools.generic |
Contains a collection of reusable, general-purpose "tools" for Velocity.
|
| Modifier and Type | Method and Description |
|---|---|
XmlTool |
XmlTool.children()
Returns a new
XmlTool instance that wraps all the
child Elements of all the current internally held nodes
that are Elements themselves. |
XmlTool |
XmlTool.find(Object o)
Converts the specified object to a String and calls
find(String) with that. |
XmlTool |
XmlTool.find(String xpath)
Performs an XPath selection on the current set of
Nodes held by this instance and returns a new
XmlTool instance that wraps those results. |
XmlTool |
XmlTool.get(Number n)
Returns an
XmlTool that wraps the specified
Node from this instance's internal Node list. |
XmlTool |
XmlTool.getFirst()
Returns an
XmlTool that wraps only the
first Node from this instance's internal Node list. |
XmlTool |
XmlTool.getLast()
Returns an
XmlTool that wraps only the
last Node from this instance's internal Node list. |
XmlTool |
XmlTool.getParent()
Returns a new
XmlTool instance that wraps
the parent Element of the first/sole Node
being wrapped by this instance. |
XmlTool |
XmlTool.NodeIterator.next() |
XmlTool |
XmlTool.parents()
Returns a new
XmlTool instance that wraps
the parent Elements of each of the Nodes
being wrapped by this instance. |
XmlTool |
XmlTool.parse(Object o)
This accepts XML in form.
|
XmlTool |
XmlTool.read(Object o)
If safe mode is explicitly turned off for this tool, then
this will accept either a
URL or the string representation
thereof. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<XmlTool> |
XmlTool.iterator()
|
Copyright © 2002–2023 Apache Software Foundation. All rights reserved.