wt.util.xml.xpath
Class AbstractXPathCallback

java.lang.Object
  extended bywt.util.xml.xpath.AbstractXPathCallback
All Implemented Interfaces:
XPathCallback
Direct Known Subclasses:
NodeListCallback, ResultsXPathCallback, SingleNodeCallback

public class AbstractXPathCallback
extends Object
implements XPathCallback

Abstract implementation of XPathCallback that provides default empty implementations for each interface method.

Some might want to refer to this as an XPathCallbackAdapter a la WindowAdapter.

Supported API: false

Extendable: false

See Also:
XPathCallback

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
AbstractXPathCallback()
           
 
Method Summary
 void process(boolean value)
          To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a boolean.
 void process(DocumentFragment value)
          To be invoked by the XPath implementation when the value specified in the XPath expression should be interpreted as a DocumentFragment.
 void process(double value)
          To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a double.
 void process(NodeList value)
          To be invoked by the XPath implementation when the value specified in the XPath expression can only be interpreted as a list of nodes.
 void process(String value)
          To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a String.
 void processNotFound()
          To be invoked by the XPath implementation when the XPath expression does not match any XML construct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

AbstractXPathCallback

public AbstractXPathCallback()
Method Detail

process

public void process(double value)
To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a double.

Supported API: false

Specified by:
process in interface XPathCallback
Parameters:
value -

process

public void process(String value)
To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a String.

Supported API: false

Specified by:
process in interface XPathCallback
Parameters:
value -

process

public void process(boolean value)
To be invoked by the XPath implementation when the value specified in the XPath expression can be interpreted as a boolean.

Supported API: false

Specified by:
process in interface XPathCallback
Parameters:
value -

process

public void process(DocumentFragment value)
To be invoked by the XPath implementation when the value specified in the XPath expression should be interpreted as a DocumentFragment.

Supported API: false

Specified by:
process in interface XPathCallback
Parameters:
value -

process

public void process(NodeList value)
To be invoked by the XPath implementation when the value specified in the XPath expression can only be interpreted as a list of nodes.

Supported API: false

Specified by:
process in interface XPathCallback
Parameters:
value -

processNotFound

public void processNotFound()
To be invoked by the XPath implementation when the XPath expression does not match any XML construct.

Supported API: false

Specified by:
processNotFound in interface XPathCallback