Class DecimalValue
java.lang.Object
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.NumericValue
net.sf.saxon.value.DecimalValue
- All Implemented Interfaces:
Comparable<XPathComparable>, Iterable<AtomicValue>, AtomicMatchKey, XPathComparable, AtomicSequence, GroundedValue, IdentityComparable, Item, Sequence, ConversionResult, ContextFreeAtomicValue
- Direct Known Subclasses:
BigDecimalValue, IntegerValue
Abstract class representing the XDM type xs:decimal. An instance of xs:decimal that is also
an instance of xs:integer will be implemented as an instance of IntegerValue; every other
xs:decimal will be implemented as an instance of BigDecimalValue.
- Since:
- 9.8: in previous releases, the concrete class BigDecimalValue was named DecimalValue, and its instances did not include integers. The new hierarchy is designed to reflect the XDM type hierarchy more faithfully
-
Field Summary
Fields inherited from class AtomicValue
typeLabel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BigDecimalImplementations of Decimal value don't throw an exception when converted to BigDecimalMethods inherited from class NumericValue
abs, asSubscript, ceiling, compareTo, compareTo, effectiveBooleanValue, equals, floor, getDoubleValue, getFloatValue, getXPathComparable, getXPathComparable, getXPathMatchKey, hashCode, isInteger, isNegativeZero, isWholeNumber, longValue, negate, parseNumber, round, roundHalfToEven, show, signumMethods inherited from class AtomicValue
asAtomic, asMapKey, atomize, checkPermittedContents, checkValidInJavascript, copyAsSubType, getCanonicalLexicalRepresentation, getCardinality, getComponent, getGenre, getItemType, getLength, getPrimitiveStringValue, getPrimitiveType, getUnicodeStringValue, getUType, head, identityHashCode, isIdentical, isIdentical, isNaN, isUntypedAtomic, itemAt, iterate, iterator, setTypeLabel, toShortString, toStringMethods inherited from interface AtomicMatchKey
asAtomicMethods inherited from interface GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface Item
getStringValue, isStreamed, reduce, subsequenceMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Sequence
makeRepeatable
-
Constructor Details
-
DecimalValue
public DecimalValue()
-
-
Method Details
-
getDecimalValue
Implementations of Decimal value don't throw an exception when converted to BigDecimal- Specified by:
getDecimalValuein classNumericValue- Returns:
- the BigDecimal representation of the value
-