org.salespointframework.core.data
Class StockIdentifier<T extends StockItem,CT extends CatalogItem>

java.lang.Object
  extended by org.salespointframework.core.data.StockIdentifier<T,CT>
Type Parameters:
T - The type of stock item that is associated to the Stock identified.
CT - The type of catalog item that is associated to the Catalog that is associated to the Stock identified.

public class StockIdentifier<T extends StockItem,CT extends CatalogItem>
extends java.lang.Object

Identifier class for Stocks. This can be used for getting correctly typed Stocks from the shop using it's getStock() method. Thus, a StockIdentifier is a combination of a name and the two type parameters a Stock posseses.

Since:
3.3
Author:
Thomas Ryssel

Field Summary
private  java.lang.String m_sName
          Identifier name.
 
Constructor Summary
StockIdentifier(java.lang.String name)
          Create a new StockIdentifer.
 
Method Summary
 java.lang.String getName()
          Get the identifier name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sName

private java.lang.String m_sName
Identifier name.

Constructor Detail

StockIdentifier

public StockIdentifier(java.lang.String name)
Create a new StockIdentifer.

Parameters:
name - Identifier name.
Method Detail

getName

public java.lang.String getName()
Get the identifier name.

Returns:
Identifier name.