001 /* 002 * Copyright 2011 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 */ 016 package org.kuali.kfs.module.purap.util; 017 018 import java.util.List; 019 020 import org.kuali.kfs.module.purap.businessobject.PurApItem; 021 import org.kuali.kfs.module.purap.businessobject.PurApItemBase; 022 import org.kuali.kfs.module.purap.businessobject.PurApItemUseTax; 023 import org.kuali.kfs.sys.businessobject.SourceAccountingLine; 024 import org.kuali.rice.kns.util.TypedArrayList; 025 026 /** 027 * . 028 * This is a special class used to hold accounts that are used for use tax and the associated offset 029 */ 030 public class UseTaxContainer { 031 032 private PurApItemUseTax useTax; 033 private List<SourceAccountingLine> accounts; 034 private List<PurApItem> items; 035 036 public UseTaxContainer() { 037 super(); 038 accounts = new TypedArrayList(SourceAccountingLine.class); 039 items = new TypedArrayList(PurApItemBase.class); 040 } 041 042 public UseTaxContainer(PurApItemUseTax useTax,PurApItem item) { 043 super(); 044 this.useTax = useTax; 045 accounts = new TypedArrayList(SourceAccountingLine.class); 046 items = new TypedArrayList(PurApItemBase.class); 047 items.add(item); 048 } 049 050 public PurApItemUseTax getUseTax() { 051 return useTax; 052 } 053 public void setUseTax(PurApItemUseTax useTax) { 054 this.useTax = useTax; 055 } 056 public List<SourceAccountingLine> getAccounts() { 057 return accounts; 058 } 059 public void setAccounts(List<SourceAccountingLine> accounts) { 060 this.accounts = accounts; 061 } 062 063 public List<PurApItem> getItems() { 064 return items; 065 } 066 067 public void setItems(List<PurApItem> items) { 068 this.items = items; 069 } 070 071 072 }