001    package data;
002    
003    /**
004     * Identifier class for Catalogs. This can be used for getting correctly typed
005     * Catalogs from the shop using it's {@link sale.Shop#getCatalog(CatalogIdentifier) getCatalog()}
006     * method. Thus, a CatalogIdentifier is a combination of a name and the type parameter.    
007     *  
008     * @author Thomas Ryssel
009     * @since  3.3
010     * 
011     * @param <T> The type of catalog item that is associated to the Catalog identified.
012     */
013    public class CatalogIdentifier<T extends CatalogItem> {
014            
015            /**
016             * Identifier name.
017             */
018            private String m_sName;
019            
020            /**
021             * Create a new CatalogIdentifer.
022             * 
023             * @param name Identifier name.
024             */
025            public CatalogIdentifier(String name) {
026                    m_sName = name;
027            }
028            
029            /**
030             * Get the identifier name.
031             * 
032             * @return Identifier name.
033             */
034            public String getName() {
035                    return m_sName;
036            }
037    }