Interface XSDecimal
-
public interface XSDecimal
Interface to expose the value of 'decimal' and related datatypes.
- Version:
- $Id: XSDecimal.java 447250 2006-09-18 05:27:17Z mrglavas $
- Author:
- Naela Nissar, IBM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimal
getBigDecimal()
java.math.BigInteger
getBigInteger()
byte
getByte()
int
getInt()
long
getLong()
short
getShort()
-
-
-
Method Detail
-
getBigDecimal
java.math.BigDecimal getBigDecimal()
- Returns:
- the
BigDecimal
representation of this object
-
getBigInteger
java.math.BigInteger getBigInteger() throws java.lang.NumberFormatException
- Returns:
- the
BigInteger
representation of this object - Throws:
java.lang.NumberFormatException
- if the value cannot be represented as aBigInteger
-
getLong
long getLong() throws java.lang.NumberFormatException
- Returns:
- the long value representation of this object
- Throws:
java.lang.NumberFormatException
- if the value cannot be represented as along
-
getInt
int getInt() throws java.lang.NumberFormatException
- Returns:
- the int value representation of this object
- Throws:
java.lang.NumberFormatException
- if the value cannot be represented as aint
-
getShort
short getShort() throws java.lang.NumberFormatException
- Returns:
- the short value representation of this object
- Throws:
java.lang.NumberFormatException
- if the value cannot be represented as ashort
-
getByte
byte getByte() throws java.lang.NumberFormatException
- Returns:
- the byte value representation of this object
- Throws:
java.lang.NumberFormatException
- if the value cannot be represented as abyte
-
-