/*
 * Created on Sep 6, 2005
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package edu.uprm.ece.icom5016.util;

import java.math.BigDecimal;
import java.util.Hashtable;

import edu.uprm.ece.icom5016.bean.CatalogItem;

/**
 * @author elliot
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class Catalog {
	private static Hashtable items;
	private static String sep = System.getProperty("file.separator");
	
	static{
		items = new Hashtable();
		items.put("grancombo1", new CatalogItem("grancombo1", "El Gran Combo", "Gran Combo's greatest album", 
					sep + "icom5016" + sep + "images" + sep + "elgrancombo.jpeg", new BigDecimal("2.99")));
		items.put("celia1",  new CatalogItem("celia1", "Celia Cruz", "Celia Cruz debut",
					sep + "icom5016" + sep +"images" + sep + "celia.jpg", new BigDecimal("2.99")));
		items.put("guns1", new CatalogItem("guns1", "Guns N Roses", "Apettite for Destruction",
					sep + "icom5016" + sep +"images" + sep + "guns.jpg", new BigDecimal("2.99")));
	}
	/**
	 * @return
	 */
	public static CatalogItem getItem(String id) {
		 if(items.containsKey(id))
		 	return (CatalogItem) items.get(id);
		 return null;
	}

}
