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