KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > samples > bidbuy > PurchaseOrder


1 package samples.bidbuy;
2
3 import java.util.Calendar JavaDoc;
4
5 public class PurchaseOrder {
6
7     // constructors
8

9     public PurchaseOrder() {};
10
11     public PurchaseOrder(String JavaDoc id, Calendar JavaDoc createDate, Address shipTo,
12                          Address billTo, LineItem[] items)
13     {
14          this.poID=id;
15          this.createDate=createDate;
16          this.shipTo=shipTo;
17          this.billTo=billTo;
18          this.items=items;
19     }
20     
21     // properties
22

23     private String JavaDoc poID;
24     public String JavaDoc getPoID() { return poID; }
25     public void setPoID(String JavaDoc value) { poID=value; }
26
27     private Calendar JavaDoc createDate;
28     public Calendar JavaDoc getCreateDate() { return createDate; }
29     public void setCreateDate(Calendar JavaDoc value) { createDate=value; }
30
31     private Address shipTo;
32     public Address getShipTo() { return shipTo; }
33     public void setShipTo(Address value) { shipTo=value; }
34
35     private Address billTo;
36     public Address getBillTo() { return billTo; }
37     public void setBillTo(Address value) { billTo=value; }
38
39     private LineItem[] items;
40     public LineItem[] getItems() { return items; }
41     public void setItems(LineItem[] value) { items=value; }
42 }
43
Popular Tags