001/*
002 * Copyright 2007-2008 The Kuali Foundation
003 * 
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 * http://www.opensource.org/licenses/ecl2.php
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole.module.purap.util;
017
018import org.kuali.ole.module.purap.businessobject.PurApItem;
019import org.kuali.ole.module.purap.businessobject.PurApItemUseTax;
020import org.kuali.ole.sys.businessobject.SourceAccountingLine;
021
022import java.util.ArrayList;
023import java.util.List;
024
025/**
026 * .
027 * This is a special class used to hold accounts that are used for use tax and the associated offset
028 */
029public class UseTaxContainer {
030
031    private PurApItemUseTax useTax;
032    private List<SourceAccountingLine> accounts;
033    private List<PurApItem> items;
034
035    public UseTaxContainer() {
036        super();
037        accounts = new ArrayList<SourceAccountingLine>();
038        items = new ArrayList<PurApItem>();
039    }
040
041    public UseTaxContainer(PurApItemUseTax useTax, PurApItem item) {
042        super();
043        this.useTax = useTax;
044        accounts = new ArrayList<SourceAccountingLine>();
045        items = new ArrayList<PurApItem>();
046        items.add(item);
047    }
048
049    public PurApItemUseTax getUseTax() {
050        return useTax;
051    }
052
053    public void setUseTax(PurApItemUseTax useTax) {
054        this.useTax = useTax;
055    }
056
057    public List<SourceAccountingLine> getAccounts() {
058        return accounts;
059    }
060
061    public void setAccounts(List<SourceAccountingLine> accounts) {
062        this.accounts = accounts;
063    }
064
065    public List<PurApItem> getItems() {
066        return items;
067    }
068
069    public void setItems(List<PurApItem> items) {
070        this.items = items;
071    }
072
073
074}