Package org.jibx.runtime
Class Java5DecimalConvert
- java.lang.Object
-
- org.jibx.runtime.Java5DecimalConvert
-
public abstract class Java5DecimalConvert extends Object
Utility class supplying a static method forjava.math.BigDecimalserialization using Java 1.5 and later. Some idiot changed thetoString()serialization format in Java 1.5, making it incompatible with the schema xs:decimal representation. This class acts as a bridge to the Java 1.5 API, and can only be used on Java 1.5 and later (until Sun again changes the API) versions.- Author:
- Dennis M. Sosnoski
-
-
Constructor Summary
Constructors Constructor Description Java5DecimalConvert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringserializeDecimal(BigDecimal value)Serialize decimal value to text using the
-
-
-
Method Detail
-
serializeDecimal
public static String serializeDecimal(BigDecimal value)
Serialize decimal value to text using the- Parameters:
value- BigDecimal value to serialize- Returns:
- converted decimal text
-
-