org.planx.xpath.object
Class XString

java.lang.Object
  extended by org.planx.xpath.expr.Expression
      extended by org.planx.xpath.object.XObject
          extended by org.planx.xpath.object.XSimple
              extended by org.planx.xpath.object.XString

public class XString
extends XSimple

A string value returned by an XPath expression.


Constructor Summary
XString(String s)
          Construct a XString from the specified string.
 
Method Summary
 boolean booleanValue()
          Returns true if this XString does not represent the empty string.
 double doubleValue()
          Returns the double value of this XString.
static double doubleValue(String s)
          Returns the double value of the specified String.
 boolean equals(Object o)
          Returns true if and only if o is an instance of XString and it has the same string value as this.
 int hashCode()
          Returns a hash code value for this object.
 String stringValue()
          Returns the string value of this XString.
 String toString()
          Returns the string value of this XString.
 
Methods inherited from class org.planx.xpath.object.XObject
evaluate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XString

public XString(String s)
Construct a XString from the specified string.

Method Detail

booleanValue

public boolean booleanValue()
Returns true if this XString does not represent the empty string. Otherwise returns false.

Specified by:
booleanValue in class XObject

doubleValue

public double doubleValue()
Returns the double value of this XString.

Specified by:
doubleValue in class XSimple

doubleValue

public static double doubleValue(String s)
Returns the double value of the specified String.


stringValue

public String stringValue()
Returns the string value of this XString.

Specified by:
stringValue in class XSimple

toString

public String toString()
Returns the string value of this XString.

Overrides:
toString in class Object

equals

public boolean equals(Object o)
Returns true if and only if o is an instance of XString and it has the same string value as this.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object


Copyright © 2010. All Rights Reserved.