org.salespointframework.core.data
Class CurrencyItemImpl
java.lang.Object
org.salespointframework.core.data.AbstractNameable
org.salespointframework.core.data.CatalogItemImpl
org.salespointframework.core.data.CurrencyItemImpl
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<java.lang.Object>, Recoverable, CatalogItem, Categorizable, CurrencyItem, DataBasketKeys, Nameable, SpItem
public class CurrencyItemImpl
- extends CatalogItemImpl
- implements CurrencyItem, Categorizable
Pure Java implementation of the CurrencyItem interface.
- Since:
- v2.0
- Version:
- 2.0 19/08/1999
- Author:
- Steffen Zschaler
| Methods inherited from class org.salespointframework.core.data.CatalogItemImpl |
addValueListener, compareTo, equals, firePropertyChanged, getCatalog, getImage, getImageBytes, getInternalShallowClone, getValue, isEditable, recover, removeValueListener, setCatalog, setImage, setImageBytes, setValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Methods inherited from interface org.salespointframework.core.data.interfaces.SpItem |
getName |
category
protected Category category
- Currency category
CurrencyItemImpl
public CurrencyItemImpl(java.lang.String sName,
int nValue,
java.net.URI imagefile,
Category category)
- Create a new CurrencyItemImpl
- Parameters:
sName - the name of the currency item.nValue - the value of the item, expressed in the smallest unit of the associated currency.imagefile - of currency item
CurrencyItemImpl
public CurrencyItemImpl(java.lang.String sName,
IntegerValue vValue)
- Create a new CurrencyItemImpl
- Parameters:
sName - the name of the currency item.nValue - the value of the item, expressed in the smallest unit of the associated currency.
CurrencyItemImpl
public CurrencyItemImpl(java.lang.String sName,
int nValue)
- Create a new CurrencyItemImpl.
- Parameters:
sName - the name of the currency item.nValue - the value of the item, expressed in the smallest unit of the associated currency.
getCategory
public Category getCategory()
- retrieve items category
- Specified by:
getCategory in interface Categorizable
- Returns:
- category
setCategory
public void setCategory(Category category)
- set items category
- Parameters:
category -
getShallowClone
public CatalogItemImpl getShallowClone()
- Description copied from class:
CatalogItemImpl
- Get a shallow clone of the CatalogItem. For normal CatalogItems there is no difference between a shallow
and a deep clone.
- Specified by:
getShallowClone in class CatalogItemImpl
toString
public java.lang.String toString()
- Description copied from class:
CatalogItemImpl
- Return a String representation of the item.
- Overrides:
toString in class CatalogItemImpl