com.xml_project.morganaxdm
Class XS_Decimal

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

public class XS_Decimal
extends XS_Numeric

Implementation of xs:decimal


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xml_project.morganaxdm.XS_Numeric
XS_Numeric.Functions, XS_Numeric.Operations
 
Nested classes/interfaces inherited from class com.xml_project.morganaxdm.XS_AnyAtomicType
XS_AnyAtomicType.ValueComparers
 
Field Summary
static int MAX_SCALE
           
static javax.xml.namespace.QName TypeName
           
 
Fields inherited from class com.xml_project.morganaxdm.XS_Numeric
NaN_StringValue, NegativeINF_StringValue, PositiveINF_StringValue
 
Constructor Summary
XS_Decimal(java.math.BigDecimal value)
           
 
Method Summary
 XS_Numeric arithmetic(XS_Numeric.Operations op, XS_Numeric v)
           
 int compareValues(XS_AnySimpleType val)
           
 boolean effectiveBooleanValue()
           
 XS_Decimal function(XS_Numeric.Functions func, int par)
           
static java.lang.Class<? extends XS_AnyType> getRestrictionBase()
           
 java.lang.String getStringValue()
          Returns the string value.
 javax.xml.namespace.QName getTypeName()
           
 java.lang.Object getValue()
          Returns the value itself.
 boolean isNaN()
           
protected static XS_Decimal makeXS_Decimal(java.lang.String resp)
           
static XS_Decimal newInstance(XdmValue value)
           
 
Methods inherited from class com.xml_project.morganaxdm.XS_Numeric
compareValues, getPromotionClass, getPromotionClass, isOrdered, makeDouble, makeOperand, makeOperand, makeOperands, promoteTo
 
Methods inherited from class com.xml_project.morganaxdm.XS_AnyAtomicType
compareValue, makeCompareResult, test
 
Methods inherited from class com.xml_project.morganaxdm.XS_AnySimpleType
compareValues, isValue
 
Methods inherited from class com.xml_project.morganaxdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxdm.XdmItem
first, get, hasValues, isEmpty, iterator, size, subSequence
 
Methods inherited from class com.xml_project.morganaxdm.XdmSequence
concat, hasCommonType, normalize, serialize, serialize, 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 javax.xml.namespace.QName TypeName

MAX_SCALE

public static final int MAX_SCALE
See Also:
Constant Field Values
Constructor Detail

XS_Decimal

public XS_Decimal(java.math.BigDecimal value)
Method Detail

getTypeName

public javax.xml.namespace.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

getStringValue

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

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

isNaN

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

arithmetic

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

getValue

public java.lang.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

function

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

getRestrictionBase

public static java.lang.Class<? extends XS_AnyType> getRestrictionBase()

makeXS_Decimal

protected static XS_Decimal makeXS_Decimal(java.lang.String resp)

newInstance

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