01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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:
17: package org.kuali.module.kra.budget.bo;
18:
19: import java.util.List;
20:
21: /**
22: *
23: */
24: public class BudgetThirdPartyCostShare extends BudgetAbstractCostShare {
25:
26: private String budgetCostShareSourceName;
27:
28: /**
29: * Default no-arg constructor.
30: */
31: public BudgetThirdPartyCostShare() {
32: super ();
33: }
34:
35: public BudgetThirdPartyCostShare(
36: BudgetThirdPartyCostShare budgetThirdPartyCostShare) {
37: this .documentNumber = budgetThirdPartyCostShare
38: .getDocumentNumber();
39: this .budgetCostShareSequenceNumber = budgetThirdPartyCostShare
40: .getBudgetCostShareSequenceNumber();
41: this .budgetCostShareDescription = budgetThirdPartyCostShare
42: .getBudgetCostShareDescription();
43: this .budgetPeriodCostShare = budgetThirdPartyCostShare
44: .getBudgetPeriodCostShare();
45: }
46:
47: /**
48: * Gets the budgetThirdPartyCostShareSourceName attribute.
49: *
50: * @return Returns the budgetThirdPartyCostShareSourceName
51: */
52: public String getBudgetCostShareSourceName() {
53: return budgetCostShareSourceName;
54: }
55:
56: /**
57: * Sets the budgetThirdPartyCostShareSourceName attribute.
58: *
59: * @param budgetThirdPartyCostShareSourceName The budgetThirdPartyCostShareSourceName to set.
60: */
61: public void setBudgetCostShareSourceName(
62: String budgetThirdPartyCostShareSourceName) {
63: this .budgetCostShareSourceName = budgetThirdPartyCostShareSourceName;
64: }
65:
66: /**
67: * Gets the budgetPeriodThirdPartyCostShare attribute.
68: *
69: * @return Returns the budgetPeriodThirdPartyCostShare
70: */
71: public List<BudgetPeriodThirdPartyCostShare> getBudgetPeriodCostShare() {
72: return budgetPeriodCostShare;
73: }
74:
75: public BudgetPeriodThirdPartyCostShare getBudgetPeriodCostShareItem(
76: int index) {
77: while (getBudgetPeriodCostShare().size() <= index) {
78: getBudgetPeriodCostShare().add(
79: new BudgetPeriodThirdPartyCostShare());
80: }
81: return (BudgetPeriodThirdPartyCostShare) getBudgetPeriodCostShare()
82: .get(index);
83: }
84:
85: /**
86: * Sets the budgetPeriodThirdPartyCostShare attribute.
87: *
88: * @param budgetPeriodThirdPartyCostShare The budgetPeriodThirdPartyCostShare to set.
89: */
90: public void setBudgetPeriodCostShare(List budgetPeriodCostShare) {
91: this.budgetPeriodCostShare = budgetPeriodCostShare;
92: }
93: }
|