01: package samples.bidbuy;
02:
03: import java.util.Calendar;
04:
05: public class PurchaseOrder {
06:
07: // constructors
08:
09: public PurchaseOrder() {
10: };
11:
12: public PurchaseOrder(String id, Calendar createDate,
13: Address shipTo, Address billTo, LineItem[] items) {
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 poID;
24:
25: public String getPoID() {
26: return poID;
27: }
28:
29: public void setPoID(String value) {
30: poID = value;
31: }
32:
33: private Calendar createDate;
34:
35: public Calendar getCreateDate() {
36: return createDate;
37: }
38:
39: public void setCreateDate(Calendar value) {
40: createDate = value;
41: }
42:
43: private Address shipTo;
44:
45: public Address getShipTo() {
46: return shipTo;
47: }
48:
49: public void setShipTo(Address value) {
50: shipTo = value;
51: }
52:
53: private Address billTo;
54:
55: public Address getBillTo() {
56: return billTo;
57: }
58:
59: public void setBillTo(Address value) {
60: billTo = value;
61: }
62:
63: private LineItem[] items;
64:
65: public LineItem[] getItems() {
66: return items;
67: }
68:
69: public void setItems(LineItem[] value) {
70: items = value;
71: }
72: }
|