SalesPoint v3.3 API

data.ooimpl
Class CurrencyItemImpl

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

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, getInternalShallowClone, 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 v3.3 API