cdqa.object

Class XDouble


public final class XDouble
extends XNumber

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

XNumber
asIntegerIfPossible()
(package private) boolean
booleanValue()
static XDouble
create(Double d)
static XDouble
create(double d)
(package private) double
doubleValue()
short
getType()
Returns the type of this object.
double
getValue()
(package private) int
intValue()
XNumber
negate()
(package private) String
stringValue()
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

asIntegerIfPossible

public XNumber asIntegerIfPossible()

booleanValue

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

create

public static XDouble create(Double d)

create

public static XDouble create(double d)

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 double 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

valueCompare

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