1 /*
2 * Copyright 2007 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.PurApSummaryItem;
19 import org.kuali.ole.sys.businessobject.SourceAccountingLine;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24 /**
25 * Summary Account.
26 * This is a special class used to display summary information i.e. what items are associated
27 * with this account.
28 */
29 public class SummaryAccount {
30
31 private SourceAccountingLine account;
32 private List<PurApSummaryItem> items;
33
34 /**
35 * Constructs a Summary Account
36 */
37 public SummaryAccount() {
38 super();
39 items = new ArrayList<PurApSummaryItem>();
40 }
41
42 public SummaryAccount(SourceAccountingLine account) {
43 super();
44 setAccount(account);
45 items = new ArrayList<PurApSummaryItem>();
46 }
47
48 public SourceAccountingLine getAccount() {
49 return account;
50 }
51
52 public void setAccount(SourceAccountingLine account) {
53 this.account = account;
54 }
55
56 public List<PurApSummaryItem> getItems() {
57 return items;
58 }
59
60 public void setItems(List<PurApSummaryItem> items) {
61 this.items = items;
62 }
63
64 }