public class BigDecimalTranslator extends NumericValueTranslator<BigDecimal>
BigDecimal
. It can e.g. be used for the type
xsd:decimal.MAX_STRING_REPRESENTATION_LENGTH
Constructor and Description |
---|
BigDecimalTranslator() |
Modifier and Type | Method and Description |
---|---|
Class<BigDecimal> |
getObjectClass()
Returns the Java class of object instances created by this translator.
|
protected BigDecimal |
parseValue(String representation,
ReaderStreamDataProvider<?> streamDataProvider) |
representationToJava
hasStringRepresentation, javaToRepresentation, readXMLRepresentation, writeXMLRepresentation
equals, hashCode
public BigDecimalTranslator()
public Class<BigDecimal> getObjectClass()
ObjectTranslator
Note that ObjectTranslator.javaToRepresentation(Object, WriterStreamDataProvider)
and ObjectTranslator.writeXMLRepresentation(XMLStreamWriter, Object, WriterStreamDataProvider)
may also
accept instances of other classes. This is independent from the return value here.
protected BigDecimal parseValue(String representation, ReaderStreamDataProvider<?> streamDataProvider) throws NumberFormatException
parseValue
in class NumericValueTranslator<BigDecimal>
NumberFormatException