com.icl.saxon.expr
public final class NumericValue extends Value
| Constructor Summary | |
|---|---|
| NumericValue(double value)
Constructor supplying a double | |
| NumericValue(String s)
Constructor supplying a String | |
| Method Summary | |
|---|---|
| boolean | asBoolean()
Convert the value to a boolean |
| double | asNumber()
Get the value as a number |
| String | asString()
Get the value as a String |
| String | asStringOLD()
Get the value as a String |
| int | conversionPreference(Class required)
Get conversion preference for this value to a Java class. |
| Object | convertToJava(Class target)
Convert to Java object (for passing to external functions) |
| void | display(int level)
Diagnostic print of expression structure |
| int | getDataType()
Determine the data type of the exprssion, if possible |
UNKNOWN: the value of the NumericValue
UNKNOWN: the numeric value expressed as a String
Returns: false if zero, true otherwise
Returns: the numeric value
Returns: a String representation of the value
Returns: a String representation of the value
Returns: one of the values Value.STRING, Value.BOOLEAN, Value.NUMBER, Value.NODESET, Value.FRAGMENT, or Value.ANY (meaning not known in advance)