001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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:
017: package org.kuali.module.kra.budget.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023:
024: /**
025: *
026: */
027: public class BudgetIndirectCostLookup extends
028: PersistableBusinessObjectBase {
029:
030: private String documentNumber;
031: private boolean budgetOnCampusIndicator;
032: private String budgetPurposeCode;
033: private KualiDecimal budgetIndirectCostRate;
034:
035: private IndirectCostLookup indirectCostLookup;
036:
037: /**
038: * Default no-arg constructor.
039: */
040: public BudgetIndirectCostLookup() {
041:
042: }
043:
044: public BudgetIndirectCostLookup(Budget budget,
045: IndirectCostLookup indirectCostLookup) {
046: this .documentNumber = budget.getDocumentNumber();
047: this .budgetOnCampusIndicator = indirectCostLookup
048: .getBudgetOnCampusIndicator();
049: this .budgetPurposeCode = indirectCostLookup
050: .getBudgetPurposeCode();
051: this .budgetIndirectCostRate = indirectCostLookup
052: .getBudgetIndirectCostRate();
053:
054: this .indirectCostLookup = indirectCostLookup;
055: }
056:
057: public String getDocumentNumber() {
058: return documentNumber;
059: }
060:
061: public void setDocumentNumber(String documentNumber) {
062: this .documentNumber = documentNumber;
063: }
064:
065: /**
066: * Gets the budgetOnCampusIndicator attribute.
067: *
068: * @return Returns the budgetOnCampusIndicator
069: */
070: public boolean getBudgetOnCampusIndicator() {
071: return budgetOnCampusIndicator;
072: }
073:
074: /**
075: * Sets the budgetOnCampusIndicator attribute.
076: *
077: * @param budgetOnCampusIndicator The budgetOnCampusIndicator to set.
078: */
079: public void setBudgetOnCampusIndicator(
080: boolean budgetOnCampusIndicator) {
081: this .budgetOnCampusIndicator = budgetOnCampusIndicator;
082: }
083:
084: /**
085: * Gets the budgetPurposeCode attribute.
086: *
087: * @return Returns the budgetPurposeCode
088: */
089: public String getBudgetPurposeCode() {
090: return budgetPurposeCode;
091: }
092:
093: /**
094: * Sets the budgetPurposeCode attribute.
095: *
096: * @param budgetPurposeCode The budgetPurposeCode to set.
097: */
098: public void setBudgetPurposeCode(String budgetPurposeCode) {
099: this .budgetPurposeCode = budgetPurposeCode;
100: }
101:
102: /**
103: * Gets the budgetIndirectCostRate attribute.
104: *
105: * @return Returns the budgetIndirectCostRate
106: */
107: public KualiDecimal getBudgetIndirectCostRate() {
108: return budgetIndirectCostRate;
109: }
110:
111: /**
112: * Sets the budgetIndirectCostRate attribute.
113: *
114: * @param budgetIndirectCostRate The budgetIndirectCostRate to set.
115: */
116: public void setBudgetIndirectCostRate(
117: KualiDecimal budgetIndirectCostRate) {
118: this .budgetIndirectCostRate = budgetIndirectCostRate;
119: }
120:
121: public IndirectCostLookup getIndirectCostLookup() {
122: return indirectCostLookup;
123: }
124:
125: public void setIndirectCostLookup(
126: IndirectCostLookup indirectCostLookup) {
127: this .indirectCostLookup = indirectCostLookup;
128: }
129:
130: /**
131: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
132: */
133: protected LinkedHashMap toStringMapper() {
134: LinkedHashMap m = new LinkedHashMap();
135:
136: // m.put("<unique identifier 1>", this.<UniqueIdentifier1>());
137: // m.put("<unique identifier 2>", this.<UniqueIdentifier2>());
138:
139: return m;
140: }
141: }
|