Class JavaDecimalHolder

    • Constructor Detail

      • JavaDecimalHolder

        public JavaDecimalHolder()
    • Method Detail

      • set_text

        protected void set_text​(String s)
        Description copied from class: XmlObjectBase
        This should set the value of the type from text, or throw an XmlValueOutOfRangeException if it can't.
        Specified by:
        set_text in class XmlObjectBase
      • set_nil

        protected void set_nil()
        Description copied from class: XmlObjectBase
        This should clear the value, and set it to whatever is supposed to be returned when the value is nilled.
        Specified by:
        set_nil in class XmlObjectBase
      • validateLexical

        public static void validateLexical​(String v,
                                           ValidationContext context)
        Performs lexical validation only.
      • compare_to

        protected int compare_to​(XmlObject decimal)
        Description copied from class: XmlObjectBase
        This implementation of compare_to is allowed to do two unusual things: (1) it can assume that the xmlobj passed has a primitive type underlying the instance type that matches the current instance, and that neither is nil. (2) it is allowed to return 2 for "incomparable"; it should not throw an exception.
        Overrides:
        compare_to in class XmlObjectBase
      • value_hash_code

        protected int value_hash_code()
        Note, this is carefully aligned with hash codes for all xsd:decimal primitives.
        Specified by:
        value_hash_code in class XmlObjectBase
      • decimalHashCode

        protected int decimalHashCode()
        This method will has BigDecimals with the same arithmetic value to the same hash code (eg, 2.3 & 2.30 will have the same hash.) This differs from BigDecimal.hashCode()