de.pannenleiter.db.expr
Class Value

java.lang.Object
  |
  +--de.pannenleiter.db.expr.Expression
        |
        +--de.pannenleiter.db.expr.Value
Direct Known Subclasses:
NumericValue, StringValue

public class Value
extends Expression


Constructor Summary
Value()
           
 
Method Summary
 void dump(java.lang.String indent)
           
static double stringToNumber(java.lang.String s)
          Static method to convert strings to numbers.
 
Methods inherited from class de.pannenleiter.db.expr.Expression
toSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

stringToNumber

public static double stringToNumber(java.lang.String s)
Static method to convert strings to numbers. Might as well go here as anywhere else.
Parameters:
s - the String to be converted
Returns:
a double representing the value of the String; if it cannot be converted, return NaN (as required by the XSL specification)

dump

public void dump(java.lang.String indent)
Overrides:
dump in class Expression