Top Description Methods
org.apache.xerces.xs.datatypes

public Interface XSDecimal

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

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

Author
Naela Nissar, IBM
Version
$Id: XSDecimal.java 447250 2006-09-18 05:27:17Z mrglavas $

Method Summary

Modifier and TypeMethod and Description
public BigDecimal

Returns:

the BigDecimal representation of this object
getBigDecimal
()

public BigInteger

Returns:

the BigInteger representation of this object
getBigInteger
()

public byte

Returns:

the byte value representation of this object
getByte
()

public int

Returns:

the int value representation of this object
getInt
()

public long

Returns:

the long value representation of this object
getLong
()

public short

Returns:

the short value representation of this object
getShort
()

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