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
 String getStringValue()
           
 int getType()
           
 boolean isTrue()
           
 

Field Detail

XPR_BOOLEAN

public static final int XPR_BOOLEAN
See Also:
Constant Field Values

XPR_NODESET

public static final int XPR_NODESET
See Also:
Constant Field Values

XPR_NULL

public static final int XPR_NULL
See Also:
Constant Field Values

XPR_NUMBER

public static final int XPR_NUMBER
See Also:
Constant Field Values

XPR_RTREEFRAG

public static final int XPR_RTREEFRAG
See Also:
Constant Field Values

XPR_STRING

public static final int XPR_STRING
See Also:
Constant Field Values

XPR_UNKNOWN

public static final int XPR_UNKNOWN
See Also:
Constant Field Values

XPR_SINGLE_ELEMENT

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

getType

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

getStringValue

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

isTrue

public 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.