| java.lang.Object net.sf.saxon.value.Value net.sf.saxon.value.AtomicValue net.sf.saxon.value.NumericValue net.sf.saxon.value.DecimalValue
DecimalValue | public DecimalValue(BigDecimal value)(Code) | | Constructor supplying a BigDecimal
Parameters: value - the value of the DecimalValue |
DecimalValue | public DecimalValue(double in) throws ValidationException(Code) | | Constructor supplying a double
Parameters: in - the value of the DecimalValue |
DecimalValue | public DecimalValue(long in)(Code) | | Constructor supplying a long integer
Parameters: in - the value of the DecimalValue |
compareTo | public int compareTo(Object other)(Code) | | Compare the value to another numeric value
|
getStringValue | public String getStringValue()(Code) | | Get the value as a String
a String representation of the value |
hashCode | public int hashCode()(Code) | | Get the hashCode. This must conform to the rules for other NumericValue hashcodes
See Also: NumericValue.hashCode |
isWholeNumber | public boolean isWholeNumber()(Code) | | Determine whether the value is a whole number, that is, whether it compares
equal to some integer
|
makeDecimalValue | public static AtomicValue makeDecimalValue(CharSequence in, boolean validate)(Code) | | Factory method to construct a DecimalValue from a string
Parameters: in - the value of the DecimalValue Parameters: validate - true if validation is required; false if the caller knows that the value is valid the required DecimalValue if the input is valid, or an ErrorValue encapsulating the errormessage if not. |
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, +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)
|
|
|