KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > ejosa > piggybank > spec > business > Coin


1 /**
2  * Title: EJOSA - Enterprise Java Open Source Architecture
3  * My Piggy Bank Example
4  * Description: Specification Object
5  * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
6  * Company: University of Muenster, HTWK Leipzig
7  * @author B. Lofi Dewanto, T. Menzel
8  * @version 1.2
9  */

10 package net.sourceforge.ejosa.piggybank.spec.business;
11
12 import net.sourceforge.ejosa.piggybank.spec.*;
13
14
15 /**
16  * The business object interface.
17  *
18  * @author B. Lofi Dewanto, T. Menzel
19  * @version 1.2
20  */

21 public interface Coin {
22     /**
23      * Gets the Id of the coin.
24      *
25      * @return the Id of the coin.
26      * @exception CoinException.
27      */

28     public String JavaDoc getId() throws CoinException;
29
30     /**
31      * Sets the Id of the coin.
32      *
33      * @param the Id to be changed.
34      * @exception CoinException.
35      */

36     public void setId(String JavaDoc id) throws CoinException;
37
38     /**
39      * Gets the date of insertion.
40      *
41      * @return the date of insertion.
42      * @exception CoinException.
43      */

44     public String JavaDoc getDate() throws CoinException;
45
46     /**
47      * Sets the date of insertion.
48      *
49      * @param the date to be changed.
50      * @exception CoinException.
51      */

52     public void setDate(String JavaDoc inputDate) throws CoinException;
53
54     /**
55      * Gets the amount of the coin.
56      *
57      * @return the amount of the coin.
58      * @exception CoinException.
59      */

60     public String JavaDoc getAmount() throws CoinException;
61
62     /**
63      * Sets the amount of the coin.
64      *
65      * @param the amount to be changed.
66      * @exception CoinException.
67      */

68     public void setAmount(String JavaDoc amount) throws CoinException;
69
70     /**
71      * Gets the currency of the coin.
72      *
73      * @return the currency of the coin.
74      * @exception CoinException.
75      */

76     public String JavaDoc getCurrency() throws CoinException;
77
78     /**
79      * Sets the currency of the coin.
80      *
81      * @param the currency to be changed.
82      * @exception CoinException.
83      */

84     public void setCurrency(String JavaDoc currency) throws CoinException;
85 }
Popular Tags