|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.XSDecimal
org.ucl.xpath.types.XSInteger
A representation of the Integer datatype
Constructor Summary | |
XSInteger()
Initialises a representation of 0 |
|
XSInteger(int x)
Initialises a representation of the supplied integer |
Method Summary | |
NumericType |
abs()
Absolutes the integer stored |
ResultSequence |
constructor(ResultSequence arg)
Creates a new ResultSequence consisting of the extractable integer in the supplied ResultSequence |
int |
int_value()
Retrieves the actual integer value stored |
ResultSequence |
minus(ResultSequence arg)
Mathematical subtraction operator between this XSInteger and the supplied ResultSequence. |
ResultSequence |
mod(ResultSequence arg)
Mathematical modulus operator between this XSInteger and the supplied ResultSequence. |
ResultSequence |
plus(ResultSequence arg)
Mathematical addition operator between this XSInteger and the supplied ResultSequence. |
void |
set_int(int x)
Sets the integer stored to that supplied |
java.lang.String |
string_type()
Retrieves the datatype's full pathname |
java.lang.String |
string_value()
Retrieves a String representation of the integer stored |
ResultSequence |
times(ResultSequence arg)
Mathematical multiplication operator between this XSInteger and the supplied ResultSequence. |
java.lang.String |
type_name()
Retrieves the datatype's name |
ResultSequence |
unary_minus()
Negates the integer stored |
boolean |
zero()
Check whether the integer represented is 0 |
Methods inherited from class org.ucl.xpath.types.XSDecimal |
ceiling, div, double_value, eq, floor, gt, idiv, lt, round_half_to_even, round, set_double |
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 XSInteger()
public XSInteger(int x)
x
- Integer to be storedMethod Detail |
public java.lang.String string_type()
string_type
in class XSDecimal
public java.lang.String type_name()
type_name
in class XSDecimal
public java.lang.String string_value()
string_value
in class XSDecimal
public boolean zero()
zero
in class XSDecimal
public ResultSequence constructor(ResultSequence arg) throws DynamicError
constructor
in class XSDecimal
arg
- The ResultSequence from which the integer is to be extracted
DynamicError
public int int_value()
public void set_int(int x)
x
- Integer to be storedpublic ResultSequence plus(ResultSequence arg) throws DynamicError
plus
in interface MathPlus
plus
in class XSDecimal
arg
- The ResultSequence to perform an addition with
DynamicError
public ResultSequence minus(ResultSequence arg) throws DynamicError
minus
in interface MathMinus
minus
in class XSDecimal
arg
- The ResultSequence to perform a subtraction with
DynamicError
public ResultSequence times(ResultSequence arg) throws DynamicError
times
in interface MathTimes
times
in class XSDecimal
arg
- The ResultSequence to perform a multiplication with
DynamicError
public ResultSequence mod(ResultSequence arg) throws DynamicError
mod
in interface MathMod
mod
in class XSDecimal
arg
- The ResultSequence to perform a modulus with
DynamicError
public ResultSequence unary_minus()
unary_minus
in class XSDecimal
public NumericType abs()
abs
in class XSDecimal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |