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.PurApSummaryItem;
021 import org.kuali.kfs.sys.businessobject.SourceAccountingLine;
022 import org.kuali.rice.kns.util.TypedArrayList;
023
024 /**
025 *
026 * Summary Account.
027 * This is a special class used to display summary information i.e. what items are associated
028 * with this account.
029 */
030 public class SummaryAccount {
031
032 private SourceAccountingLine account;
033 private List<PurApSummaryItem> items;
034
035 /**
036 * Constructs a Summary Account
037 */
038 public SummaryAccount() {
039 super();
040 items = new TypedArrayList(PurApSummaryItem.class);
041 }
042
043 public SummaryAccount(SourceAccountingLine account) {
044 super();
045 setAccount(account);
046 items = new TypedArrayList(PurApSummaryItem.class);
047 }
048
049 public SourceAccountingLine getAccount() {
050 return account;
051 }
052
053 public void setAccount(SourceAccountingLine account) {
054 this.account = account;
055 }
056
057 public List<PurApSummaryItem> getItems() {
058 return items;
059 }
060
061 public void setItems(List<PurApSummaryItem> items) {
062 this.items = items;
063 }
064
065 }