NetKernel APIs


org.ten60.netkernel.xml.xda
Interface IXPathResult

All Known Implementing Classes:
DOMXPathResult

public interface IXPathResult

The result of evaluating an XPath expression on IXDA


Field Summary
static int XPR_BOOLEAN
           
static int XPR_NODESET
           
static int XPR_NULL
           
static int XPR_NUMBER
           
static int XPR_RTREEFRAG
           
static int XPR_SINGLE_ELEMENT
           
static int XPR_STRING
           
static int XPR_UNKNOWN
           
 
Method Summary
 java.lang.String getStringValue()
           
 int getType()
           
 boolean isTrue()
           
 

Field Detail

XPR_BOOLEAN

static final int XPR_BOOLEAN
See Also:
Constant Field Values

XPR_NODESET

static final int XPR_NODESET
See Also:
Constant Field Values

XPR_NULL

static final int XPR_NULL
See Also:
Constant Field Values

XPR_NUMBER

static final int XPR_NUMBER
See Also:
Constant Field Values

XPR_RTREEFRAG

static final int XPR_RTREEFRAG
See Also:
Constant Field Values

XPR_STRING

static final int XPR_STRING
See Also:
Constant Field Values

XPR_UNKNOWN

static final int XPR_UNKNOWN
See Also:
Constant Field Values

XPR_SINGLE_ELEMENT

static final int XPR_SINGLE_ELEMENT
See Also:
Constant Field Values
Method Detail

getType

int getType()
Returns:
the type of result. It will be one of the constants defined by this interface

getStringValue

java.lang.String getStringValue()
Returns:
the value of result cast to a string
Throws:
XPathResultTransformException - if result cannot be extracted

isTrue

boolean isTrue()
               throws XPathLocationException
Returns:
true if the result can be cast to true
Throws:
thrown - if result cannot be cast to boolean
XPathLocationException

NetKernel APIs


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