|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.xml.xpath.AbstractXPathCallback
wt.util.xml.xpath.NodeListCallback
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 DOMException.NOT_SUPPORTED_ERR
being thrown back to the
calling body.
Supported API: true
Extendable: true
Field Summary | |
(package private) NodeList |
list
The node list held internally |
Fields inherited from class wt.util.xml.xpath.AbstractXPathCallback |
|
Constructor Summary | |
NodeListCallback()
|
Method Summary | |
Node |
firstNode()
Will return the first Node which was satisfied by the xpath through this callback. |
NodeList |
getNodeList()
Will return the list of Nodes which were satisfied by the xpath through this callback. |
void |
process(boolean value)
process method for the boolean type. |
void |
process(double value)
process method for the double type. |
void |
process(NodeList value)
process method for the NodeList type. |
void |
process(String value)
process method for the String type. |
void |
processNotFound()
processed if the process could not be found for the type. |
Methods inherited from class wt.util.xml.xpath.AbstractXPathCallback |
process |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
NodeList list
Constructor Detail |
public NodeListCallback()
Method Detail |
public NodeList getNodeList()
public Node firstNode()
public void process(String value)
process
in interface XPathCallback
process
in class AbstractXPathCallback
value
-
DOMException.NOT_SUPPORTED_ERR
- if an attempt is made to process
this type with this callback.public void processNotFound()
processNotFound
in interface XPathCallback
processNotFound
in class AbstractXPathCallback
public void process(boolean value)
process
in interface XPathCallback
process
in class AbstractXPathCallback
value
-
DOMException.NOT_SUPPORTED_ERR
- if an attempt is made to process
this type with this callback.public void process(double value)
process
in interface XPathCallback
process
in class AbstractXPathCallback
value
-
DOMException.NOT_SUPPORTED_ERR
- if an attempt is made to process
this type with this callback.public void process(NodeList value)
process
in interface XPathCallback
process
in class AbstractXPathCallback
value
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |