View Javadoc
1   /*
2    * Copyright 2007-2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.module.purap.util;
17  
18  import org.kuali.ole.module.purap.businessobject.PurApItem;
19  import org.kuali.ole.module.purap.businessobject.PurApItemUseTax;
20  import org.kuali.ole.sys.businessobject.SourceAccountingLine;
21  
22  import java.util.ArrayList;
23  import java.util.List;
24  
25  /**
26   * .
27   * This is a special class used to hold accounts that are used for use tax and the associated offset
28   */
29  public class UseTaxContainer {
30  
31      private PurApItemUseTax useTax;
32      private List<SourceAccountingLine> accounts;
33      private List<PurApItem> items;
34  
35      public UseTaxContainer() {
36          super();
37          accounts = new ArrayList<SourceAccountingLine>();
38          items = new ArrayList<PurApItem>();
39      }
40  
41      public UseTaxContainer(PurApItemUseTax useTax, PurApItem item) {
42          super();
43          this.useTax = useTax;
44          accounts = new ArrayList<SourceAccountingLine>();
45          items = new ArrayList<PurApItem>();
46          items.add(item);
47      }
48  
49      public PurApItemUseTax getUseTax() {
50          return useTax;
51      }
52  
53      public void setUseTax(PurApItemUseTax useTax) {
54          this.useTax = useTax;
55      }
56  
57      public List<SourceAccountingLine> getAccounts() {
58          return accounts;
59      }
60  
61      public void setAccounts(List<SourceAccountingLine> accounts) {
62          this.accounts = accounts;
63      }
64  
65      public List<PurApItem> getItems() {
66          return items;
67      }
68  
69      public void setItems(List<PurApItem> items) {
70          this.items = items;
71      }
72  
73  
74  }