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: import org.kuali.module.kra.routingform.bo.Purpose;
024:
025: /**
026: *
027: */
028: public class IndirectCostLookup extends PersistableBusinessObjectBase {
029:
030: private boolean budgetOnCampusIndicator;
031: private String budgetPurposeCode;
032: private KualiDecimal budgetIndirectCostRate;
033: private Purpose budgetPurpose;
034: private boolean active;
035:
036: /**
037: * Default no-arg constructor.
038: */
039: public IndirectCostLookup() {
040:
041: }
042:
043: public IndirectCostLookup(boolean budgetOnCampusIndicator,
044: String budgetPurposeCode) {
045: this ();
046: this .budgetOnCampusIndicator = budgetOnCampusIndicator;
047: this .budgetPurposeCode = budgetPurposeCode;
048: }
049:
050: /**
051: * Gets the budgetOnCampusIndicator attribute.
052: *
053: * @return Returns the budgetOnCampusIndicator
054: */
055: public boolean getBudgetOnCampusIndicator() {
056: return budgetOnCampusIndicator;
057: }
058:
059: /**
060: * Sets the budgetOnCampusIndicator attribute.
061: *
062: * @param budgetOnCampusIndicator The budgetOnCampusIndicator to set.
063: */
064: public void setBudgetOnCampusIndicator(
065: boolean budgetOnCampusIndicator) {
066: this .budgetOnCampusIndicator = budgetOnCampusIndicator;
067: }
068:
069: /**
070: * Gets the budgetPurposeCode attribute.
071: *
072: * @return Returns the budgetPurposeCode
073: */
074: public String getBudgetPurposeCode() {
075: return budgetPurposeCode;
076: }
077:
078: /**
079: * Sets the budgetPurposeCode attribute.
080: *
081: * @param budgetPurposeCode The budgetPurposeCode to set.
082: */
083: public void setBudgetPurposeCode(String budgetPurposeCode) {
084: this .budgetPurposeCode = budgetPurposeCode;
085: }
086:
087: /**
088: * Gets the budgetIndirectCostRate attribute.
089: *
090: * @return Returns the budgetIndirectCostRate
091: */
092: public KualiDecimal getBudgetIndirectCostRate() {
093: return budgetIndirectCostRate;
094: }
095:
096: /**
097: * Sets the budgetIndirectCostRate attribute.
098: *
099: * @param budgetIndirectCostRate The budgetIndirectCostRate to set.
100: */
101: public void setBudgetIndirectCostRate(
102: KualiDecimal budgetIndirectCostRate) {
103: this .budgetIndirectCostRate = budgetIndirectCostRate;
104: }
105:
106: /**
107: * Gets the budgetPurpose attribute.
108: *
109: * @return Returns the budgetPurpose.
110: */
111: public Purpose getBudgetPurpose() {
112: return budgetPurpose;
113: }
114:
115: /**
116: * Sets the budgetPurpose attribute value.
117: *
118: * @param budgetPurpose The budgetPurpose to set.
119: */
120: public void setBudgetPurpose(Purpose budgetPurpose) {
121: this .budgetPurpose = budgetPurpose;
122: }
123:
124: /**
125: * Gets the active attribute.
126: *
127: * @return Returns the active.
128: */
129: public boolean isActive() {
130: return active;
131: }
132:
133: /**
134: * Sets the active attribute value.
135: *
136: * @param active The active to set.
137: */
138: public void setActive(boolean active) {
139: this .active = active;
140: }
141:
142: /**
143: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
144: */
145: protected LinkedHashMap toStringMapper() {
146: LinkedHashMap m = new LinkedHashMap();
147:
148: // m.put("<unique identifier 1>", this.<UniqueIdentifier1>());
149: // m.put("<unique identifier 2>", this.<UniqueIdentifier2>());
150:
151: return m;
152: }
153: }
|