com.xml_project.morganaxproc.xdm
Class XS_Double

java.lang.Object
  extended by com.xml_project.morganaxproc.xdm.XdmSequence
      extended by com.xml_project.morganaxproc.xdm.XdmItem
          extended by com.xml_project.morganaxproc.xdm.XdmValue
              extended by com.xml_project.morganaxproc.xdm.XS_AnySimpleType
                  extended by com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
                      extended by com.xml_project.morganaxproc.xdm.XS_Numeric
                          extended by com.xml_project.morganaxproc.xdm.XS_Double
All Implemented Interfaces:
XS_AnyType, Iterable<XdmItem>

public class XS_Double
extends XS_Numeric

Implementation of xs:double


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xml_project.morganaxproc.xdm.XS_Numeric
XS_Numeric.Functions, XS_Numeric.Operations
 
Nested classes/interfaces inherited from class com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
XS_AnyAtomicType.ValueComparers
 
Field Summary
static XS_Double INFINITY
           
static XS_Double MINUS_ZERO
           
static XS_Double NaN
           
static XS_Double NEG_INFINITY
           
static Double NEG_NULL
           
static Double NULL
           
static QName TypeName
           
static XS_Double ZERO
           
 
Constructor Summary
XS_Double(double value)
           
 
Method Summary
 XS_Numeric arithmetic(XS_Numeric.Operations op, XS_Numeric v)
           
 int compareValues(XS_AnySimpleType val)
           
 boolean effectiveBooleanValue()
           
 XS_Double function(XS_Numeric.Functions func, int par)
           
static Class<? extends XS_AnyType> getRestrictionBase()
           
 String getStringValue()
          Returns the string value.
 QName getTypeName()
           
 Object getValue()
          Returns the value itself.
 boolean isInfinite()
           
 boolean isNaN()
           
static XS_Double makeXS_Double(String resp)
           
static XS_Double makeXS_Double(XS_AnyAtomicType val)
           
static XS_Double newInstance(XdmValue value)
           
 XS_Double round(int roundMode, int scale)
           
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_Numeric
compareValues, getPromotionClass, getPromotionClass, isOrdered, makeDouble, makeOperand, makeOperand, makeOperands, promoteTo
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
compareValue, makeCompareResult, test
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnySimpleType
compareValues, isValue
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmItem
first, get, hasValues, isEmpty, iterator, size, subSequence
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmSequence
concat, hasCommonType, normalize, serialize, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TypeName

public static final QName TypeName

NaN

public static final XS_Double NaN

NULL

public static final Double NULL

NEG_NULL

public static final Double NEG_NULL

ZERO

public static final XS_Double ZERO

MINUS_ZERO

public static final XS_Double MINUS_ZERO

NEG_INFINITY

public static final XS_Double NEG_INFINITY

INFINITY

public static final XS_Double INFINITY
Constructor Detail

XS_Double

public XS_Double(double value)
Method Detail

getTypeName

public QName getTypeName()
Specified by:
getTypeName in interface XS_AnyType
Overrides:
getTypeName in class XS_Numeric

effectiveBooleanValue

public boolean effectiveBooleanValue()
Specified by:
effectiveBooleanValue in class XS_Numeric

isNaN

public boolean isNaN()
Specified by:
isNaN in class XS_Numeric

isInfinite

public boolean isInfinite()

getStringValue

public String getStringValue()
Description copied from class: XdmItem
Returns the string value.

Specified by:
getStringValue in class XdmItem
Returns:
the string value.

arithmetic

public XS_Numeric arithmetic(XS_Numeric.Operations op,
                             XS_Numeric v)
                      throws XPathException
Specified by:
arithmetic in class XS_Numeric
Throws:
XPathException

function

public XS_Double function(XS_Numeric.Functions func,
                          int par)
                   throws XPathException
Specified by:
function in class XS_Numeric
Throws:
XPathException

round

public XS_Double round(int roundMode,
                       int scale)

getValue

public Object getValue()
Description copied from class: XdmItem
Returns the value itself.

Specified by:
getValue in class XdmItem
Returns:
the value.

compareValues

public int compareValues(XS_AnySimpleType val)
Specified by:
compareValues in class XS_Numeric

makeXS_Double

public static XS_Double makeXS_Double(XS_AnyAtomicType val)
                               throws XPathException
Throws:
XPathException

makeXS_Double

public static XS_Double makeXS_Double(String resp)
                               throws XPathException
Throws:
XPathException

getRestrictionBase

public static Class<? extends XS_AnyType> getRestrictionBase()

newInstance

public static XS_Double newInstance(XdmValue value)
                             throws XPathException
Throws:
XPathException