SalesPoint Framework v3.1

data.ooimpl
Class CurrencyItemImpl

java.lang.Object
  extended bydata.AbstractNameable
      extended bydata.ooimpl.CatalogItemImpl
          extended bydata.ooimpl.CurrencyItemImpl
All Implemented Interfaces:
CatalogItem, Cloneable, Comparable, CurrencyItem, DataBasketKeys, Nameable, Serializable

public class CurrencyItemImpl
extends CatalogItemImpl
implements CurrencyItem

Pure Java implementation of the CurrencyItem interface.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class data.AbstractNameable
m_ncContext, m_pcsPropertyListeners
 
Fields inherited from interface data.CatalogItem
VALUE_PROPERTY
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
Fields inherited from interface data.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
CurrencyItemImpl(String sName, int nValue)
          Create a new CurrencyItemImpl.
 
Method Summary
 CatalogItemImpl getShallowClone()
          Get a shallow clone of the CatalogItem.
 String toString()
          Return a String representation of the item.
 
Methods inherited from class data.ooimpl.CatalogItemImpl
addValueListener, compareTo, equals, getCatalog, getValue, isEditable, removeValueListener, setValue
 
Methods inherited from class data.AbstractNameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface data.CurrencyItem
getValue
 
Methods inherited from interface data.CatalogItem
addValueListener, getCatalog, removeValueListener
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CurrencyItemImpl

public CurrencyItemImpl(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.
Method Detail

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
Override:
Never

toString

public String toString()
Description copied from class: CatalogItemImpl
Return a String representation of the item.

Overrides:
toString in class CatalogItemImpl
Override:
Never

SalesPoint Framework v3.1