01: /**
02: * Title: EJOSA - Enterprise Java Open Source Architecture
03: * My Piggy Bank Example
04: * Description: Specification Object
05: * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
06: * Company: University of Muenster, HTWK Leipzig
07: * @author B. Lofi Dewanto, T. Menzel
08: * @version 1.2
09: */package net.sourceforge.ejosa.piggybank.spec.business;
10:
11: import net.sourceforge.ejosa.piggybank.spec.*;
12:
13: /**
14: * The business object interface.
15: *
16: * @author B. Lofi Dewanto, T. Menzel
17: * @version 1.2
18: */
19: public interface Coin {
20: /**
21: * Gets the Id of the coin.
22: *
23: * @return the Id of the coin.
24: * @exception CoinException.
25: */
26: public String getId() throws CoinException;
27:
28: /**
29: * Sets the Id of the coin.
30: *
31: * @param the Id to be changed.
32: * @exception CoinException.
33: */
34: public void setId(String id) throws CoinException;
35:
36: /**
37: * Gets the date of insertion.
38: *
39: * @return the date of insertion.
40: * @exception CoinException.
41: */
42: public String getDate() throws CoinException;
43:
44: /**
45: * Sets the date of insertion.
46: *
47: * @param the date to be changed.
48: * @exception CoinException.
49: */
50: public void setDate(String inputDate) throws CoinException;
51:
52: /**
53: * Gets the amount of the coin.
54: *
55: * @return the amount of the coin.
56: * @exception CoinException.
57: */
58: public String getAmount() throws CoinException;
59:
60: /**
61: * Sets the amount of the coin.
62: *
63: * @param the amount to be changed.
64: * @exception CoinException.
65: */
66: public void setAmount(String amount) throws CoinException;
67:
68: /**
69: * Gets the currency of the coin.
70: *
71: * @return the currency of the coin.
72: * @exception CoinException.
73: */
74: public String getCurrency() throws CoinException;
75:
76: /**
77: * Sets the currency of the coin.
78: *
79: * @param the currency to be changed.
80: * @exception CoinException.
81: */
82: public void setCurrency(String currency) throws CoinException;
83: }
|