01: /*
02: * User: Michael Rettig
03: * Date: Sep 1, 2002
04: * Time: 10:45:43 PM
05: */
06: package net.sourceforge.jaxor.example;
07:
08: import java.math.BigDecimal;
09:
10: public class MoneyWithCurrency extends Money {
11:
12: private final String _currency;
13:
14: public MoneyWithCurrency(String amount, String currency) {
15: super (amount);
16: _currency = currency;
17: }
18:
19: public MoneyWithCurrency(BigDecimal amount, String currency) {
20: super (amount);
21: _currency = currency;
22: }
23:
24: public String getCurrency() {
25: return _currency;
26: }
27: }
|