org.exolab.adaptx.xpath
public final class StringResult extends XPathResult
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Field Summary | |
---|---|
static StringResult | EMPTY
String result representing an empty string. |
Constructor Summary | |
---|---|
StringResult()
Creates a new string result with an empty string as
it's value.
| |
StringResult(String value)
Creates a new string result with the given value.
|
Method Summary | |
---|---|
boolean | booleanValue()
Returns the result as a boolean value. |
boolean | equals(XPathResult result)
Returns true if the given result is a string result
and has the same string value.
|
int | getResultType()
Returns the type of this result.
|
Object | javaObject()
Returns the result as a Java object. |
double | numberValue()
Returns the result as a number value. |
String | stringValue()
Returns the result as a string value.
|
String | toString()
Returns the String representation of this XPathResult
|
Parameters: value The string value (not null)
Returns: The result as a boolean value
Parameters: result An XPath result
Returns: True if a string result and has same value
Returns: STRING
Returns: The result as a Java object
Returns: The result as a number value
Returns: The result as a string value
Returns: the String representation of this XPathResult