package data.filters; import data.*; import java.text.ParseException; /** * A CatalogFilter that filters {@link Currency Currencies}. * * @author Steffen Zschaler * @version 2.0 19/08/1999 * @since v2.0 */ public abstract class CurrencyFilter extends CatalogFilter implements Currency { /** * Create a new CurrencyFilter. * * @param c the Currency to be filtered. */ public CurrencyFilter (Currency c) { super (c); } /** * Convert the given value to its {@link String} representation using the source Currency. * * @override Never */ public String toString (NumberValue nv) { return ((Currency) m_cOrg).toString (nv); } /** * Try to parse the given {@link String} as a Currency value using the source Currency. * * @override Never */ public NumberValue parse (String s) throws ParseException { return ((Currency) m_cOrg).parse (s); } }