SalesPoint v3.3 API

data
Interface StockItem

All Superinterfaces:
Cloneable, Comparable<Object>, Nameable, Serializable
All Known Subinterfaces:
CountingStock<T,CT>, ListenableStock<T,CT>, MoneyBag, Stock<T,CT>, StoringStock<T,CT>
All Known Implementing Classes:
AbstractStockFilter, CountingStockFilter, CountingStockImpl, MoneyBagFilter, MoneyBagImpl, StockImpl, StockItemImpl, StoringStockFilter, StoringStockImpl

public interface StockItem
extends Cloneable, Comparable<Object>, Nameable

An item in a Stock.

StockItems describe actually available items. They refer to a CatalogItem and describe an item of the CatalogItem's type that is actually available in a Shop's storage, on an order form etc.

Note that the name as obtained via Nameable.getName() is used as the StockItem's key when inserting the StockItem in a Stock.

Stocks are a special form of StockItems.

Since:
v2.0
Author:
Steffen Zschaler

Field Summary
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
Method Summary
 Object clone()
          Clone the StockItem.
 CatalogItem getAssociatedItem(DataBasket db)
          Get the CatalogItem that is associated to this StockItem.
 Stock getStock()
          Get the Stock that contains this StockItem.
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 

Method Detail

getStock

Stock getStock()
Get the Stock that contains this StockItem.

Override:
Always

getAssociatedItem

CatalogItem getAssociatedItem(DataBasket db)
Get the CatalogItem that is associated to this StockItem.

Parameters:
db - the DataBasket that is used for checking visibility.
Override:
Always

clone

Object clone()
Clone the StockItem.

Override:
Always

SalesPoint v3.3 API