001    package data.ooimpl;
002    
003    import data.AbstractCurrency;
004    import java.util.Locale;
005    
006    /**
007     * EURO-Implementation of AbstractCurrency
008     *
009     * @author  Thomas Medack
010     * @version 3.0
011     */
012    public class EUROCurrencyImpl extends AbstractCurrency {
013    
014        /**
015         * Creates a new instance of EUROCurrencyImpl
016         */
017        public EUROCurrencyImpl(String name) {
018            super(name);
019        }
020    
021        /**
022         * Creates a new instance of EUROCurrencyImpl
023         */
024        public EUROCurrencyImpl(String name, Locale locale) {
025            super(name, locale);
026        }
027    
028        /**
029         * This abstract method allows the programmer to choose the names and values of the
030         * CurrencyItems (EURO, DM, ...).
031         *
032         * A complete list of data containers, which always contain pairs of name and value, has to be returned.
033         * The single CurrencyItems can be found in the Catalog (Currency) with those names.
034         *
035         * @return an Array of data containers that contain names and values of CurrencyItems to be added.
036         */
037        protected CurrencyItemData[] getCurrencyItemData() {
038            return new CurrencyItemData[] {
039                    new CurrencyItemData(CENT_STCK_1, 1), new CurrencyItemData(CENT_STCK_2, 2),
040                    new CurrencyItemData(CENT_STCK_5, 5), new CurrencyItemData(CENT_STCK_10, 10),
041                    new CurrencyItemData(CENT_STCK_20, 20), new CurrencyItemData(CENT_STCK_50, 50),
042                    new CurrencyItemData(EURO_STCK_1, 100), new CurrencyItemData(EURO_STCK_2, 200),
043                    new CurrencyItemData(EURO_SCHEIN_5, 500), new CurrencyItemData(EURO_SCHEIN_10, 1000),
044                    new CurrencyItemData(EURO_SCHEIN_20, 2000), new CurrencyItemData(EURO_SCHEIN_50, 5000),
045                    new CurrencyItemData(EURO_SCHEIN_100, 10000), new CurrencyItemData(EURO_SCHEIN_200, 20000),
046                    new CurrencyItemData(EURO_SCHEIN_500, 50000)
047            };
048        }
049    
050        /**
051         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
052         * <p>1-Cent-Stueck</p>
053         */
054        public static String CENT_STCK_1 = "1-Cent-Stueck";
055    
056        /**
057         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
058         * <p>2-Cent-Stueck</p>
059         */
060        public static String CENT_STCK_2 = "2-Cent-Stueck";
061    
062        /**
063         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
064         * <p>5-Cent-Stueck</p>
065         */
066        public static String CENT_STCK_5 = "5-Cent-Stueck";
067    
068        /**
069         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
070         * <p>10-Cent-Stueck</p>
071         */
072        public static String CENT_STCK_10 = "10-Cent-Stueck";
073    
074        /**
075         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
076         * <p>20-Cent-Stueck</p>
077         */
078        public static String CENT_STCK_20 = "20-Cent-Stueck";
079    
080        /**
081         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
082         * <p>50-Cent-Stueck</p>
083         */
084        public static String CENT_STCK_50 = "50-Cent-Stueck";
085    
086        /**
087         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
088         * <p>1-Euro-Stueck</p>
089         */
090        public static String EURO_STCK_1 = "1-EURO-Stueck";
091    
092        /**
093         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
094         * <p>2-Euro-Stueck</p>
095         */
096        public static String EURO_STCK_2 = "2-EURO-Stueck";
097    
098        /**
099         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
100         * <p>5-Euro-Schein</p>
101         */
102        public static String EURO_SCHEIN_5 = "5-EURO-Schein";
103    
104        /**
105         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
106         * <p>10-Euro-Schein</p>
107         */
108        public static String EURO_SCHEIN_10 = "10-EURO-Schein";
109    
110        /**
111         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
112         * <p>20-Euro-Schein</p>
113         */
114        public static String EURO_SCHEIN_20 = "20-EURO-Schein";
115        /**
116         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
117         * <p>50-Euro-Schein</p>
118         */
119        public static String EURO_SCHEIN_50 = "50-EURO-Schein";
120        /**
121         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
122         * <p>100-Euro-Schein</p>
123         */
124        public static String EURO_SCHEIN_100 = "100-EURO-Schein";
125        /**
126         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
127         * <p>200-Euro-Schein</p>
128         */
129        public static String EURO_SCHEIN_200 = "200-EURO-Schein";
130        /**
131         * Field string represents the mainkey for an added <code>CurrencyItemImpl</code>.
132         * <p>500-Euro-Schein</p>
133         */
134        public static String EURO_SCHEIN_500 = "500-EURO-Schein";
135    }
136    /*
137     * $Log: EUROCurrencyImpl.java,v $
138     * Revision 1.3  2003/10/19 17:45:15  cvs_sp
139     * kleinere Kommentierungen und Variablenumbenennungen in den Displays
140     *
141     * Revision 1.6  2003/04/09 20:57:16  cvs_sp
142     * Javadoc korrigiert, um Warnungen und fehlerhafte Eintr�ge beim Erzeugen zu verhindern.
143     *
144     * Revision 1.2  2003/02/28 17:05:08  cvs_sp
145     * no message
146     *
147     * Revision 1.1  2002/07/11 15:31:10  tm11
148     * Neue Currencyklassen geschrieben. CurrencyImpl als deprecated erkl�rt.
149     * EUROCurrencyImpl geschrieben.
150     *
151     */