| 1 |
package samples.bidbuy; |
| 2 |
|
| 3 |
import java.util.Calendar; |
| 4 |
|
| 5 |
public class PurchaseOrder { |
| 6 |
|
| 7 |
// constructors |
| 8 |
|
| 9 |
public PurchaseOrder() {}; |
| 10 |
|
| 11 |
public PurchaseOrder(String id, Calendar 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 poID; |
| 24 |
public String getPoID() { return poID; } |
| 25 |
public void setPoID(String value) { poID=value; } |
| 26 |
|
| 27 |
private Calendar createDate; |
| 28 |
public Calendar getCreateDate() { return createDate; } |
| 29 |
public void setCreateDate(Calendar 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 |
} |