Package net.sf.saxon.value
Interface ContextFreeAtomicValue
- All Known Implementing Classes:
Base64BinaryValue
,BigDecimalValue
,BigIntegerValue
,BooleanValue
,DayTimeDurationValue
,DecimalValue
,DoubleValue
,FloatValue
,HexBinaryValue
,Int64Value
,IntegerValue
,NumericValue
,YearMonthDurationValue
public interface ContextFreeAtomicValue
This interface is implemented by AtomicValues that can be compared without regard
to context - specifically, the result of
eq
and lt
comparisons does not depend
on collations or on the context-dependent timezone.-
Method Summary
Modifier and TypeMethodDescriptionGet an XPathComparable object that supports the semantics of context-free eq and lt comparisons between atomic values.
-
Method Details
-
getXPathComparable
XPathComparable getXPathComparable()Get an XPathComparable object that supports the semantics of context-free eq and lt comparisons between atomic values. Note that in many cases the returned XPathComparable will be the AtomicValue itself; however because of the constraints of the genericComparable
interface, this cannot be assumed.- Returns:
- an XPathComparable that can be used in comparisons with other atomic values.
-