|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.adaptx.xpath.XPathResult
|
+--org.exolab.adaptx.xpath.StringResult
Represents a string result. This is an immutable object.
| Field Summary | |
|---|---|
static StringResult |
EMPTY
String result representing an empty string. |
| Fields inherited from class org.exolab.adaptx.xpath.XPathResult |
|---|
BOOLEAN, NODE_SET, NUMBER, STRING, USER_DEFINED |
| Constructor Summary | |
|---|---|
StringResult()
Creates a new string result with an empty string as it's value. |
|
StringResult(java.lang.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. |
java.lang.Object |
javaObject()
Returns the result as a Java object. |
double |
numberValue()
Returns the result as a number value. |
java.lang.String |
stringValue()
Returns the result as a string value. |
java.lang.String |
toString()
Returns the String representation of this XPathResult |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final StringResult EMPTY
| Constructor Detail |
public StringResult()
public StringResult(java.lang.String value)
value - The string value (not null)| Method Detail |
public int getResultType()
getResultType in class XPathResultXPathResult.STRINGpublic boolean booleanValue()
booleanValue in class XPathResultpublic double numberValue()
Double.NaN
if the value is not a valid number.
numberValue in class XPathResultpublic java.lang.String stringValue()
stringValue in class XPathResultpublic java.lang.Object javaObject()
String with the same string value.
javaObject in class XPathResultpublic boolean equals(XPathResult result)
equals in class XPathResultresult - An XPath result
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||