SalesPoint Framework v3.0

Hook: Define StockItem


Requirement

A new type of StockItem is needed to represent items contained in some StoringStock.

Method of Adaptation
Add Feature
Level of Support
Open Ended  
HotSpot
Data management
Participants
StockItemImpl, NewStockItem

Changes

  1. subclass NewStockItem of StockItemImpl.
  2. NewStockItem.clone overrides StockItemImpl.clone .
  3. if the natural order is not the order of the names:
    1. NewStockItem.compareTo overrides StockItemImpl.compareTo .
  4. if two NewStockItems can be equal although they are not identical:
    1. NewStockItem.equals overrides StockItemImpl.equals .
  5. add new attributes as necessary.
  6. add new methods as necessary.

Constraints

Comments


SalesPoint Framework v3.0