Product.java
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 /**
11  *  Description of the Class
12  *
13  *@author    Terracotta, Inc.
14  */
15 public class Product {
16 
17    private final String id;
18    private final int quantity;
19    private final String name;
20    private final String details;
21 
22    public Product(String id, int quantity, String name, String details) {
23       this.id = id;
24       this.quantity = quantity;
25       this.name = name;
26       this.details = details;
27    }
28 
29    public String getId() {
30       return id;
31    }
32 
33    public int getQuantity() {
34       return quantity;
35    }
36 
37    public String getName() {
38       return name;
39    }
40 
41    public String getDetails() {
42       return details;
43    }
44 }