APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xerces.internal.xs.datatypes

public Interface XSDecimal

Known Direct Implementers
com.sun.org.apache.xerces.internal.impl.dv.xs.DecimalDV.XDecimal
Imports
java.math.BigDecimal, .BigInteger

Interface to expose the value of 'decimal' and related datatypes.

Author
Naela Nissar, IBM

Method Summary

Modifier and TypeMethod and Description
public BigDecimal
getBigDecimal()

Returns: the BigDecimal representation of this object

public BigInteger
getBigInteger()

Returns: the BigInteger representation of this object

public byte
getByte()

Returns: the byte value representation of this object

public int
getInt()

Returns: the int value representation of this object

public long
getLong()

Returns: the long value representation of this object

public short
getShort()

Returns: the short value representation of this object

Method Detail

getBigDecimalback to summary
public BigDecimal getBigDecimal()
Returns:BigDecimal

the BigDecimal representation of this object

getBigIntegerback to summary
public BigInteger getBigInteger() throws NumberFormatException
Returns:BigInteger

the BigInteger representation of this object

Exceptions
NumberFormatException:
if the value cannot be represented as a BigInteger
getByteback to summary
public byte getByte() throws NumberFormatException
Returns:byte

the byte value representation of this object

Exceptions
NumberFormatException:
if the value cannot be represented as a byte
getIntback to summary
public int getInt() throws NumberFormatException
Returns:int

the int value representation of this object

Exceptions
NumberFormatException:
if the value cannot be represented as a int
getLongback to summary
public long getLong() throws NumberFormatException
Returns:long

the long value representation of this object

Exceptions
NumberFormatException:
if the value cannot be represented as a long
getShortback to summary
public short getShort() throws NumberFormatException
Returns:short

the short value representation of this object

Exceptions
NumberFormatException:
if the value cannot be represented as a short