example.model.Order Maven / Gradle / Ivy
/*
Milyn - Copyright (C) 2006 - 2010
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (version 2.1) as published by the Free Software
Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details:
http://www.gnu.org/licenses/lgpl.txt
*/
package example.model;
import java.util.List;
/**
* @author [email protected]
*/
public class Order {
private Header header;
private List orderItems;
public Header getHeader() {
return header;
}
public void setHeader(Header header) {
this.header = header;
}
public List getOrderItems() {
return orderItems;
}
public void setOrderItems(List orderItems) {
this.orderItems = orderItems;
}
public String toString() {
StringBuffer desc = new StringBuffer();
desc.append("Order Header: \n");
desc.append(header);
desc.append("Order Items: \n");
for(int i = 0; i < orderItems.size(); i++) {
desc.append("\t" + "(" + i + "): " + orderItems.get(i)).append("\n");
}
return desc.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy