001package org.kuali.ole.pojo.edi;
002
003import java.util.ArrayList;
004import java.util.List;
005
006/**
007 * Created by IntelliJ IDEA.
008 * User: palanivel
009 * Date: 3/2/12
010 * Time: 3:56 PM
011 * To change this template use File | Settings | File Templates.
012 */
013public class LineItemOrder {
014    private List<LineItem> lineItem = new ArrayList<LineItem>();
015    private List<ProductFunction> productFunction = new ArrayList<ProductFunction>();
016    private List<ItemDescription> itemDescriptionList = new ArrayList<ItemDescription>();
017    private List<QuantityInformation> quantityInformation = new ArrayList<QuantityInformation>();
018    private List<PriceInformation> priceInformation = new ArrayList<PriceInformation>();
019    private List<BuyerReferenceInformation> buyerReferenceInformation = new ArrayList<BuyerReferenceInformation>();
020    private List<SupplierReferenceInformation> supplierReferenceInformation = new ArrayList<SupplierReferenceInformation>();
021    private List<FundNumberReference> fundNumberReference = new ArrayList<FundNumberReference>();
022    private List<FreeTextNotes> note = new ArrayList<FreeTextNotes>();
023    private List<TransportStageQualifier> transportStageQualifier = new ArrayList<TransportStageQualifier>();
024    private List<DateTimeDetail> dateTimeDetail = new ArrayList<>();
025    private List<MonetaryDetail> monetaryDetail = new ArrayList<>();
026    private List<LineItemAllowanceOrCharge> lineItemAllowanceOrCharge = new ArrayList<>();
027    private List<AllowanceMonetaryDetail> allowanceMonetaryDetail = new ArrayList<>();
028
029
030    public List<LineItemAllowanceOrCharge> getLineItemAllowanceOrCharge() {
031        return lineItemAllowanceOrCharge;
032    }
033
034    public void setLineItemAllowanceOrCharge(List<LineItemAllowanceOrCharge> lineItemAllowanceOrCharge) {
035        lineItemAllowanceOrCharge = lineItemAllowanceOrCharge;
036    }
037
038    public List<AllowanceMonetaryDetail> getAllowanceMonetaryDetail() {
039        return allowanceMonetaryDetail;
040    }
041
042    public void setAllowanceMonetaryDetail(List<MonetaryDetail> allowanceMonetaryDetail) {
043        allowanceMonetaryDetail = allowanceMonetaryDetail;
044    }
045
046    public List<FreeTextNotes> getNote() {
047        return note;
048    }
049
050    public void setNote(List<FreeTextNotes> note) {
051        this.note = note;
052    }
053
054    public List<ProductFunction> getProductFunction() {
055        return productFunction;
056    }
057
058    public void setProductFunction(List<ProductFunction> productFunction) {
059        this.productFunction = productFunction;
060    }
061
062    public List<QuantityInformation> getQuantityInformation() {
063        return quantityInformation;
064    }
065
066    public void setQuantityInformation(List<QuantityInformation> quantityInformation) {
067        this.quantityInformation = quantityInformation;
068    }
069
070    public List<PriceInformation> getPriceInformation() {
071        return priceInformation;
072    }
073
074    public void setPriceInformation(List<PriceInformation> priceInformation) {
075        this.priceInformation = priceInformation;
076    }
077
078    public List<BuyerReferenceInformation> getBuyerReferenceInformation() {
079        return buyerReferenceInformation;
080    }
081
082    public void setBuyerReferenceInformation(List<BuyerReferenceInformation> buyerReferenceInformation) {
083        this.buyerReferenceInformation = buyerReferenceInformation;
084    }
085
086    public List<SupplierReferenceInformation> getSupplierReferenceInformation() {
087        return supplierReferenceInformation;
088    }
089
090    public void setSupplierReferenceInformation(List<SupplierReferenceInformation> supplierReferenceInformation) {
091        this.supplierReferenceInformation = supplierReferenceInformation;
092    }
093
094    public List<FundNumberReference> getFundNumberReference() {
095        return fundNumberReference;
096    }
097
098    public void setFundNumberReference(List<FundNumberReference> fundNumberReference) {
099        this.fundNumberReference = fundNumberReference;
100    }
101
102    public List<TransportStageQualifier> getTransportStageQualifier() {
103        return transportStageQualifier;
104    }
105
106    public void setTransportStageQualifier(List<TransportStageQualifier> transportStageQualifier) {
107        this.transportStageQualifier = transportStageQualifier;
108    }
109
110    public List<DateTimeDetail> getDateTimeDetail() {
111        return dateTimeDetail;
112    }
113
114    public void setDateTimeDetail(List<DateTimeDetail> dateTimeDetail) {
115        this.dateTimeDetail = dateTimeDetail;
116    }
117
118    public List<MonetaryDetail> getMonetaryDetail() {
119        return monetaryDetail;
120    }
121
122    public void setMonetaryDetail(List<MonetaryDetail> monetaryDetail) {
123        this.monetaryDetail = monetaryDetail;
124    }
125
126    public void addLineItemAllowanceOrCharge(LineItemAllowanceOrCharge lineItemAllowanceOrCharge){
127        if (!this.lineItemAllowanceOrCharge.contains(lineItemAllowanceOrCharge)) {
128             this.lineItemAllowanceOrCharge.add(lineItemAllowanceOrCharge);
129        }
130    }
131
132    public void addLineItem(AllowanceMonetaryDetail allowanceMonetaryDetail) {
133        if (!this.allowanceMonetaryDetail.contains(allowanceMonetaryDetail)) {
134            this.allowanceMonetaryDetail.add(allowanceMonetaryDetail);
135        }
136    }
137
138    public void addLineItem(LineItem lineItem) {
139        if (!this.lineItem.contains(lineItem)) {
140            this.lineItem.add(lineItem);
141        }
142    }
143
144    public void addNote(FreeTextNotes note) {
145        if (!this.note.contains(note)) {
146            this.note.add(note);
147        }
148    }
149
150    public void addProductFunction(ProductFunction productFunction) {
151        if (!this.productFunction.contains(productFunction)) {
152            this.productFunction.add(productFunction);
153        }
154    }
155
156    public void addItemDescription(ItemDescription itemDescription) {
157        if (!this.itemDescriptionList.contains(itemDescription)) {
158            this.itemDescriptionList.add(itemDescription);
159        }
160    }
161
162    public void addQuantityInformation(QuantityInformation quantityInformation) {
163        if (!this.quantityInformation.contains(quantityInformation)) {
164            this.quantityInformation.add(quantityInformation);
165        }
166    }
167
168    public void addPriceInformation(PriceInformation priceInformation) {
169        if (!this.priceInformation.contains(priceInformation)) {
170            this.priceInformation.add(priceInformation);
171        }
172    }
173
174    public void addBuyerReferenceInformation(BuyerReferenceInformation buyerReferenceInformation) {
175        if (!this.buyerReferenceInformation.contains(buyerReferenceInformation)) {
176            this.buyerReferenceInformation.add(buyerReferenceInformation);
177        }
178    }
179
180    public void addSupplierReferenceInformation(SupplierReferenceInformation supplierReferenceInformation) {
181        if (!this.supplierReferenceInformation.contains(supplierReferenceInformation)) {
182            this.supplierReferenceInformation.add(supplierReferenceInformation);
183        }
184    }
185
186    public void addFundNumberReference(FundNumberReference fundNumberReference) {
187        if (!this.fundNumberReference.contains(fundNumberReference)) {
188            this.fundNumberReference.add(fundNumberReference);
189        }
190    }
191
192    public void addTransportStageQualifier(TransportStageQualifier transportStageQualifier) {
193        if (!this.transportStageQualifier.contains(transportStageQualifier)) {
194            this.transportStageQualifier.add(transportStageQualifier);
195        }
196    }
197
198    public void addDateTimeDetail(DateTimeDetail dateTimeDetail) {
199        if (!this.dateTimeDetail.contains(dateTimeDetail)) {
200            this.dateTimeDetail.add(dateTimeDetail);
201        }
202    }
203
204
205    public void addMonetaryDetail(MonetaryDetail monetaryDetail) {
206        if (!this.monetaryDetail.contains(monetaryDetail)) {
207            this.monetaryDetail.add(monetaryDetail);
208        }
209    }
210
211    public List<LineItem> getLineItem() {
212        return lineItem;
213    }
214
215    public void setLineItem(List<LineItem> lineItem) {
216        this.lineItem = lineItem;
217    }
218
219    public List<ItemDescription> getItemDescriptionList() {
220        return itemDescriptionList;
221    }
222
223    public void setItemDescriptionList(List<ItemDescription> itemDescriptionList) {
224        this.itemDescriptionList = itemDescriptionList;
225    }
226
227
228}