KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xs > datatypes > XSDecimal


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.xerces.xs.datatypes;
17
18 import java.math.BigDecimal JavaDoc;
19 import java.math.BigInteger JavaDoc;
20
21 /**
22  * <p>Interface to expose the value of 'decimal' and related datatypes.</p>
23  *
24  * @author Naela Nissar, IBM
25  *
26  * @version $Id: XSDecimal.java,v 1.4 2005/05/15 20:38:40 mrglavas Exp $
27  */

28 public interface XSDecimal {
29      
30     /**
31      * @return the <code>BigDecimal</code> representation of this object
32      */

33     public BigDecimal JavaDoc getBigDecimal();
34     
35     /**
36      * @return the <code>BigInteger</code> representation of this object
37      * @exception NumberFormatException if the value cannot be represented as a <code>BigInteger</code>
38      */

39     public BigInteger JavaDoc getBigInteger() throws NumberFormatException JavaDoc;
40     
41     /**
42      * @return the long value representation of this object
43      * @exception NumberFormatException if the value cannot be represented as a <code>long</code>
44      */

45     public long getLong() throws NumberFormatException JavaDoc;
46     
47     /**
48      * @return the int value representation of this object
49      * @exception NumberFormatException if the value cannot be represented as a <code>int</code>
50      */

51     public int getInt() throws NumberFormatException JavaDoc;
52     
53     /**
54      * @return the short value representation of this object
55      * @exception NumberFormatException if the value cannot be represented as a <code>short</code>
56      */

57     public short getShort() throws NumberFormatException JavaDoc;
58     
59     /**
60      * @return the byte value representation of this object
61      * @exception NumberFormatException if the value cannot be represented as a <code>byte</code>
62      */

63     public byte getByte() throws NumberFormatException JavaDoc;
64 }
65
Popular Tags