NetKernel APIs


org.ten60.netkernel.xml.xda
Class DOMXPathResult

java.lang.Object
  extended byorg.ten60.netkernel.xml.xda.DOMXPathResult
All Implemented Interfaces:
IXPathResult

public class DOMXPathResult
extends Object
implements IXPathResult

Implementation of IXPathResult


Field Summary
 
Fields inherited from interface org.ten60.netkernel.xml.xda.IXPathResult
XPR_BOOLEAN, XPR_NODESET, XPR_NULL, XPR_NUMBER, XPR_RTREEFRAG, XPR_SINGLE_ELEMENT, XPR_STRING, XPR_UNKNOWN
 
Constructor Summary
DOMXPathResult(NodeList aNodeList)
          Creates a new instance of XPathResult
DOMXPathResult(org.apache.xpath.objects.XObject aXO)
          Creates a new instance of XPathResult
 
Method Summary
 NodeList getNodeList()
           
 String getStringValue()
           
 int getType()
           
 boolean isTrue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.