| java.lang.Object net.sf.saxon.value.Value net.sf.saxon.value.AtomicValue net.sf.saxon.value.NumericValue net.sf.saxon.value.DoubleValue
DoubleValue | final public class DoubleValue extends NumericValue (Code) | | A numeric (double precision floating point) value
|
DoubleValue | public DoubleValue(double value)(Code) | | Constructor supplying a double
Parameters: value - the value of the NumericValue |
convertPrimitive | public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)(Code) | | Convert to target data type
Parameters: requiredType - an integer identifying the required atomic type Parameters: context - an AtomicValue, a value of the required type |
doubleToString | static String doubleToString(double value, String javaString)(Code) | | Internal method used for conversion of a double to a string
Parameters: value - the actual value Parameters: javaString - the result of converting the double to a string using the Java conventions.This value is adjusted as necessary to cater for the differences between the Java and XPath rules. the value converted to a string, according to the XPath casting rules. |
effectiveBooleanValue | public boolean effectiveBooleanValue(XPathContext context)(Code) | | Get the effective boolean value
Parameters: context - the effective boolean value (true unless the value is zero or NaN) |
getDoubleValue | public double getDoubleValue()(Code) | | Return this numeric value as a double
the value as a double |
getStringValue | public String getStringValue()(Code) | | Convert the double to a string according to the XPath 2.0 rules
the string value |
hashCode | public int hashCode()(Code) | | Get the hashCode. This must conform to the rules for other NumericValue hashcodes
See Also: NumericValue.hashCode |
isNaN | public boolean isNaN()(Code) | | Test whether the value is the double/float value NaN
|
isWholeNumber | public boolean isWholeNumber()(Code) | | Determine whether the value is a whole number, that is, whether it compares
equal to some integer
|
roundToHalfEven | public NumericValue roundToHalfEven(int scale)(Code) | | Implement the XPath round-to-half-even() function
|
schemaEquals | public boolean schemaEquals(Value obj)(Code) | | Compare two values for equality. This supports identity constraints in XML Schema,
which allow list-valued elements and attributes to participate in key and uniqueness constraints.
This method returns false if any error occurs during the comparison, or if any of the items
in either sequence is a node rather than an atomic value. The default implementation of
schemaEquals() is the same as equals(), but subclasses can override this.
|
signum | public double signum()(Code) | | Determine whether the value is negative, zero, or positive
-1 if negative, 0 if zero (including negative zero), +1 if positive, NaN if NaN |
Fields inherited from net.sf.saxon.value.Value | final public static Class[] EMPTY_CLASS_ARRAY(Code)(Java Doc)
|
Methods inherited from net.sf.saxon.value.Value | public static Item asItem(ValueRepresentation value, XPathContext context) throws XPathException(Code)(Java Doc) public static SequenceIterator asIterator(ValueRepresentation val, XPathContext context) throws XPathException(Code)(Java Doc) public static Value asValue(ValueRepresentation val)(Code)(Java Doc) public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code)(Java Doc) public static CharSequence collapseWhitespace(CharSequence in)(Code)(Java Doc) public static Object convert(Item item) throws XPathException(Code)(Java Doc) public static Value convertJavaObjectToXPath(Object object, SequenceType requiredType, Configuration config) throws XPathException(Code)(Java Doc) public Object convertToJava(Class target, XPathContext context) throws XPathException(Code)(Java Doc) public void display(int level, NamePool pool, PrintStream out)(Code)(Java Doc) public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String evaluateAsString(XPathContext context) throws XPathException(Code)(Java Doc) public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc) public int getCardinality()(Code)(Java Doc) final public int getDependencies()(Code)(Java Doc) public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc) public static SequenceIterator getIterator(ValueRepresentation val) throws XPathException(Code)(Java Doc) public int getLength() throws XPathException(Code)(Java Doc) final public Container getParentExpression()(Code)(Java Doc) public int getSpecialProperties()(Code)(Java Doc) public String getStringValue() throws XPathException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public Item itemAt(int n) throws XPathException(Code)(Java Doc) final public Iterator iterateSubExpressions()(Code)(Java Doc) public static QNameValue makeQNameValue(Object object, Configuration config)(Code)(Java Doc) public static CharSequence normalizeWhitespace(CharSequence in)(Code)(Java Doc) final public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)(Code)(Java Doc) public void process(XPathContext context) throws XPathException(Code)(Java Doc) final public Expression promote(PromotionOffer offer)(Code)(Java Doc) public Value reduce() throws XPathException(Code)(Java Doc) public boolean schemaEquals(Value obj)(Code)(Java Doc) final public Expression simplify(StaticContext env)(Code)(Java Doc) public static double stringToNumber(CharSequence s) throws NumberFormatException(Code)(Java Doc) public String toString()(Code)(Java Doc) public static CharSequence trimWhitespace(CharSequence in)(Code)(Java Doc) final public Expression typeCheck(StaticContext env, ItemType contextItemType)(Code)(Java Doc)
|
|
|