|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ucl.xpath.types.AnyType org.ucl.xpath.types.AnySimpleType org.ucl.xpath.types.AnyAtomicType org.ucl.xpath.types.CtrType org.ucl.xpath.types.NumericType org.ucl.xpath.types.XSDouble
A representation of the Double datatype
Constructor Summary | |
XSDouble()
Initialises a representation of 0 |
|
XSDouble(double x)
Initialises a representation of the supplied number |
|
XSDouble(java.lang.String init)
Initialises using a String represented number |
Method Summary | |
NumericType |
abs()
Absolutes the number stored |
NumericType |
ceiling()
Returns the smallest integer greater than the number stored |
ResultSequence |
constructor(ResultSequence arg)
Creates a new result sequence consisting of the retrievable double number in the supplied result sequence |
ResultSequence |
div(ResultSequence arg)
Mathematical division operator between this XSDouble and the supplied ResultSequence. |
double |
double_value()
Retrieves the actual value of the number stored |
boolean |
eq(AnyType aa)
Equality comparison between this number and the supplied representation. |
NumericType |
floor()
Returns the largest integer smaller than the number stored |
boolean |
gt(AnyType arg)
Comparison between this number and the supplied representation. |
ResultSequence |
idiv(ResultSequence arg)
Mathematical integer division operator between this XSDouble and the supplied ResultSequence. |
boolean |
lt(AnyType arg)
Comparison between this number and the supplied representation. |
ResultSequence |
minus(ResultSequence arg)
Mathematical subtraction operator between this XSDouble and the supplied ResultSequence. |
ResultSequence |
mod(ResultSequence arg)
Mathematical modulus operator between this XSDouble and the supplied ResultSequence. |
boolean |
nan()
Check for whether this XSDouble represents NaN |
static XSDouble |
parse_double(java.lang.String i)
Creates a new representation of the String represented number |
ResultSequence |
plus(ResultSequence arg)
Mathematical addition operator between this XSDouble and the supplied ResultSequence. |
NumericType |
round_half_to_even()
Returns the closest integer of the number stored. |
NumericType |
round()
Returns the closest integer of the number stored. |
java.lang.String |
string_type()
Retrieves the datatype's full pathname |
java.lang.String |
string_value()
Retrieves a String representation of the Decimal value stored |
ResultSequence |
times(ResultSequence arg)
Mathematical multiplication operator between this XSDouble and the supplied ResultSequence. |
java.lang.String |
type_name()
Retrieves the datatype's name |
ResultSequence |
unary_minus()
Negation of the number stored |
boolean |
zero()
Check for whether this XSDouble represents 0 |
Methods inherited from class org.ucl.xpath.types.NumericType |
get_single_arg, get_single_type, get_single_type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSDouble(double x)
x
- Number to be storedpublic XSDouble()
public XSDouble(java.lang.String init) throws DynamicError
init
- String representation of the number to be storedMethod Detail |
public static XSDouble parse_double(java.lang.String i)
i
- String representation of the number to be stored
public ResultSequence constructor(ResultSequence arg) throws DynamicError
constructor
in class CtrType
arg
- The result sequence from which to extract the double number.
DynamicError
public java.lang.String string_type()
string_type
in class AnyType
public java.lang.String type_name()
type_name
in class CtrType
public java.lang.String string_value()
string_value
in class AnyType
public boolean nan()
public boolean zero()
zero
in class NumericType
public double double_value()
public boolean eq(AnyType aa) throws DynamicError
aa
- Representation to be compared with (must currently be of type XSDouble)
DynamicError
- Dynamic error.public boolean gt(AnyType arg) throws DynamicError
arg
- Representation to be compared with (must currently be of type XSDouble)
DynamicError
- Dynamic error.public boolean lt(AnyType arg) throws DynamicError
arg
- Representation to be compared with (must currently be of type XSDouble)
DynamicError
- Dynamic error.public ResultSequence plus(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform an addition with
DynamicError
- Dynamic error.public ResultSequence minus(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform an subtraction with
DynamicError
- Dynamic error.public ResultSequence times(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform an multiplication with
DynamicError
- Dynamic error.public ResultSequence div(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform an division with
DynamicError
- Dynamic error.public ResultSequence idiv(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform an integer division with
DynamicError
- Dynamic error.public ResultSequence mod(ResultSequence arg) throws DynamicError
arg
- The ResultSequence to perform a modulus with
DynamicError
- Dynamic error.public ResultSequence unary_minus()
unary_minus
in class NumericType
public NumericType abs()
abs
in class NumericType
public NumericType ceiling()
ceiling
in class NumericType
public NumericType floor()
floor
in class NumericType
public NumericType round()
round
in class NumericType
public NumericType round_half_to_even()
round_half_to_even
in class NumericType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |