org.ten60.netkernel.xml.xda
Class DOMXPathResult
java.lang.Object
org.ten60.netkernel.xml.xda.DOMXPathResult
- All Implemented Interfaces:
- IXPathResult
public class DOMXPathResult
- extends java.lang.Object
- implements IXPathResult
Implementation of IXPathResult
|
Constructor Summary |
DOMXPathResult(org.w3c.dom.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(org.w3c.dom.NodeList aNodeList)
- Creates a new instance of XPathResult
getStringValue
public java.lang.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 org.w3c.dom.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.