package data.ooimpl;
import data.*;
public class CurrencyItemImpl extends CatalogItemImpl implements CurrencyItem {
public CurrencyItemImpl (String sName, int nValue) {
super (sName, new IntegerValue (nValue));
}
public CatalogItemImpl getShallowClone() {
return new CurrencyItemImpl (getName(), ((NumberValue) getValue()).getValue().intValue());
}
public String toString() {
return getName() + ": " + ((getCatalog() != null)?
(((Currency) getCatalog()).toString ((NumberValue) getValue())):
(getValue().toString()));
}
}