Package wt.util.xml.xpath
Class NodeListCallback
java.lang.Object
wt.util.xml.xpath.AbstractXPathCallback
wt.util.xml.xpath.NodeListCallback
- All Implemented Interfaces:
wt.util.xml.xpath.XPathCallback
public class NodeListCallback
extends wt.util.xml.xpath.AbstractXPathCallback
This class may be used as a simple callback to obtain a NodeList from
a particular xpath. Any attempt to process any other type will result
in a
Supported API: true
Extendable: true
DOMException.NOT_SUPPORTED_ERR being thrown back to the
calling body.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionWill return the first Node which was satisfied by the xpath through this callback.Will return the list of Nodes which were satisfied by the xpath through this callback.voidprocess(boolean value) process method for the boolean type.voidprocess(double value) process method for the double type.voidprocess method for the String type.voidprocess method for the NodeList type.
-
Method Details
-
getNodeList
Will return the list of Nodes which were satisfied by the xpath through this callback.
Supported API: true- Returns:
- NodeList The nodelist of valid nodes.
-
firstNode
Will return the first Node which was satisfied by the xpath through this callback.
Supported API: true- Returns:
- Node The first valid Node or null if there are none.
-
process
process method for the String type.
Supported API: true- Specified by:
processin interfacewt.util.xml.xpath.XPathCallback- Overrides:
processin classwt.util.xml.xpath.AbstractXPathCallback- Throws:
DOMException- Specifically a NOT_SUPPORTED_ERR if an attempt is made to process this type with this callback.
-
process
public void process(boolean value) process method for the boolean type.
Supported API: true- Specified by:
processin interfacewt.util.xml.xpath.XPathCallback- Overrides:
processin classwt.util.xml.xpath.AbstractXPathCallback- Throws:
DOMException- Specifically a NOT_SUPPORTED_ERR if an attempt is made to process this type with this callback.
-
process
public void process(double value) process method for the double type.
Supported API: true- Specified by:
processin interfacewt.util.xml.xpath.XPathCallback- Overrides:
processin classwt.util.xml.xpath.AbstractXPathCallback- Throws:
DOMException- Specifically a NOT_SUPPORTED_ERR if an attempt is made to process this type with this callback.
-
process
process method for the NodeList type.
Supported API: true- Specified by:
processin interfacewt.util.xml.xpath.XPathCallback- Overrides:
processin classwt.util.xml.xpath.AbstractXPathCallback
-