cdqa.object

Class XInteger


public final class XInteger
extends XNumber

class XInteger extends XNumber
Author:
simonkm

Field Summary

Fields inherited from class cdqa.object.XObject

LOGGER, TYPE_ATTR, TYPE_BOOLEAN, TYPE_DOCUMENT, TYPE_DOUBLE, TYPE_ELEMENT, TYPE_END, TYPE_INTEGER, TYPE_STRING, TYPE_TEXT

Method Summary

(package private) boolean
booleanValue()
static XInteger
create(Integer i)
static XInteger
create(int i)
(package private) double
doubleValue()
short
getType()
Returns the type of this object.
int
getValue()
(package private) int
intValue()
XNumber
negate()
(package private) String
stringValue()
String
toString()
boolean
valueCompare(XObject o)

Methods inherited from class cdqa.object.XNumber

createXNumber, createXNumber, negate

Methods inherited from class cdqa.object.XAtomic

createDOMClone, fullText, getDocumentElement, getNodeName, getOwnerDocument, getParentNode, isAtomic, isDOM, pathTo, print, shortText

Methods inherited from class cdqa.object.XObject

asBoolean, asDouble, asInteger, asString, booleanValue, createDOMClone, doubleValue, fullText, getDocumentElement, getFullText, getLabel, getNodeName, getOwnerDocument, getParentNode, getType, intValue, isAtomic, isDOM, isEND, isFALSE, isTRUE, pathTo, print, shortText, stringValue, theENDObject, valueCompare, valueCompare

Method Details

booleanValue

(package private)  boolean booleanValue()
            throws CastException
Overrides:
booleanValue in interface XObject

create

public static XInteger create(Integer i)

create

public static XInteger create(int i)

doubleValue

(package private)  double doubleValue()
            throws CastException
Overrides:
doubleValue in interface XObject

getType

public short getType()
Returns the type of this object. see the enumeration in XObject class
Overrides:
getType in interface XObject

getValue

public int getValue()

intValue

(package private)  int intValue()
            throws CastException
Overrides:
intValue in interface XObject

negate

public XNumber negate()
Overrides:
negate in interface XNumber

stringValue

(package private)  String stringValue()
Overrides:
stringValue in interface XObject

toString

public String toString()

valueCompare

public boolean valueCompare(XObject o)
Overrides:
valueCompare in interface XObject