01 /**
02 *
03 * All content copyright (c) 2003-2008 Terracotta, Inc.,
04 * except as may otherwise be noted in a separate copyright notice.
05 * All rights reserved.
06 *
07 */
08 package demo.townsend.service;
09
10 import java.util.ArrayList;
11
12 /**
13 * Description of the Class
14 *
15 *@author Terracotta, Inc.
16 */
17 public class ProductCatalog {
18
19 private ArrayList catalog;
20
21 public ProductCatalog() {
22 catalog = new ArrayList();
23 if (!catalog.isEmpty()) {
24 return;
25 }
26 catalog.add(new Product("0001", 10, "Canon PowerShot A620", "7.1 Megapixel Digital"));
27 catalog.add(new Product("0002", 24, "Olympus EVOLT E-500", "8.0 Megapixel Digital SLR Camera w/2.5\" LCD & Two Lenses"));
28 catalog.add(new Product("0003", 150, "Canon PowerShot SD450", "5.0 Megapixel Digital Camera w/3x Zoom & 2.5\" LCD"));
29 catalog.add(new Product("0004", 165, "Fuji FinePix A345", "4.1 Megapixel Digital Camera"));
30 catalog.add(new Product("0005", 205, "Olympus SP-310", "7.1 Megapixel Digital Camera"));
31 catalog.add(new Product("0006", 90, "Canon PowerShot A520", "4.0 Megapixel Digital Camera w/4X Zoom"));
32 catalog.add(new Product("0007", 4, "Canon PowerShot SD500", "7.1 Megapixel Digital Camera w/3x Optical Zoom"));
33 catalog.add(new Product("0008", 14, "Casio EX-Z850", "8.0 MegaPixel Camera with 3x Optical Zoom and Super Bright 2.5\" LCD"));
34 }
35
36 public ArrayList getCatalog() {
37 return catalog;
38 }
39 }
|