File: PurchaseOrder.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (42 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package samples.bidbuy;

import java.util.Calendar;

public class PurchaseOrder {

    // constructors

    public PurchaseOrder() {};

    public PurchaseOrder(String id, Calendar createDate, Address shipTo,
                         Address billTo, LineItem[] items)
    {
         this.poID=id;
         this.createDate=createDate;
         this.shipTo=shipTo;
         this.billTo=billTo;
         this.items=items;
    }
    
    // properties

    private String poID;
    public String getPoID() { return poID; }
    public void setPoID(String value) { poID=value; }

    private Calendar createDate;
    public Calendar getCreateDate() { return createDate; }
    public void setCreateDate(Calendar value) { createDate=value; }

    private Address shipTo;
    public Address getShipTo() { return shipTo; }
    public void setShipTo(Address value) { shipTo=value; }

    private Address billTo;
    public Address getBillTo() { return billTo; }
    public void setBillTo(Address value) { billTo=value; }

    private LineItem[] items;
    public LineItem[] getItems() { return items; }
    public void setItems(LineItem[] value) { items=value; }
}