package javajaxb.po;
import java.util.ArrayList;
public class PurchaseOrder {
/** list of Order */
protected ArrayList orderList = new ArrayList();
public PurchaseOrder() {
}
/** full constructor */
public PurchaseOrder(ArrayList orderList) {
if (orderList != null)
this.orderList = orderList;
}
/** list of Order */
public ArrayList getOrderList() {
return(orderList);
}
/** list of Order */
public void setOrderList(ArrayList orderList) {
this.orderList = orderList;
}
public Order getOrder(int i) {
return((Order)orderList.get(i));
}
public void setOrder(int i, Order order) {
orderList.set(i, order);
}
public int orderCount() {
return(orderList.size());
}
public void addOrder(Order order) {
orderList.add(order);
}
}
|