org.ten60.netkernel.xml.xda
Class DOMXPathResult
java.lang.Object
org.ten60.netkernel.xml.xda.DOMXPathResult
- All Implemented Interfaces:
- IXPathResult
- public class DOMXPathResult
- extends Object
- implements IXPathResult
Implementation of IXPathResult
Constructor Summary |
DOMXPathResult(NodeList aNodeList)
Creates a new instance of XPathResult |
DOMXPathResult(org.apache.xpath.objects.XObject aXO)
Creates a new instance of XPathResult |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMXPathResult
public DOMXPathResult(org.apache.xpath.objects.XObject aXO)
- Creates a new instance of XPathResult
DOMXPathResult
public DOMXPathResult(NodeList aNodeList)
- Creates a new instance of XPathResult
getStringValue
public String getStringValue()
- Specified by:
getStringValue
in interface IXPathResult
- Returns:
- the value of result cast to a string
- Throws:
XPathResultTransformException
- if result cannot be extracted
getType
public int getType()
- Specified by:
getType
in interface IXPathResult
- Returns:
- the type of result. It will be one of the constants
defined by this interface
getNodeList
public NodeList getNodeList()
isTrue
public boolean isTrue()
throws XPathLocationException
- Specified by:
isTrue
in interface IXPathResult
- Returns:
- true if the result can be cast to true
- Throws:
XPathLocationException
Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.