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.cg.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: * A generalized purpose for a proposal.
025: */
026: public class ProposalPurpose extends PersistableBusinessObjectBase {
027:
028: private String proposalPurposeCode;
029: private String proposalPurposeDescription;
030: private boolean rowActiveIndicator;
031:
032: /**
033: * Default constructor.
034: */
035: public ProposalPurpose() {
036: }
037:
038: /**
039: * Gets the proposalPurposeCode attribute.
040: *
041: * @return Returns the proposalPurposeCode
042: */
043: public String getProposalPurposeCode() {
044: return proposalPurposeCode;
045: }
046:
047: /**
048: * Sets the proposalPurposeCode attribute.
049: *
050: * @param proposalPurposeCode The proposalPurposeCode to set.
051: */
052: public void setProposalPurposeCode(String proposalPurposeCode) {
053: this .proposalPurposeCode = proposalPurposeCode;
054: }
055:
056: /**
057: * Gets the proposalPurposeDescription attribute.
058: *
059: * @return Returns the proposalPurposeDescription
060: */
061: public String getProposalPurposeDescription() {
062: return proposalPurposeDescription;
063: }
064:
065: /**
066: * Sets the proposalPurposeDescription attribute.
067: *
068: * @param proposalPurposeDescription The proposalPurposeDescription to set.
069: */
070: public void setProposalPurposeDescription(
071: String proposalPurposeDescription) {
072: this .proposalPurposeDescription = proposalPurposeDescription;
073: }
074:
075: /**
076: * Gets the rowActiveIndicator attribute.
077: *
078: * @return Returns the rowActiveIndicator.
079: */
080: public boolean isRowActiveIndicator() {
081: return rowActiveIndicator;
082: }
083:
084: /**
085: * Sets the rowActiveIndicator attribute value.
086: *
087: * @param rowActiveIndicator The rowActiveIndicator to set.
088: */
089: public void setRowActiveIndicator(boolean rowActiveIndicator) {
090: this .rowActiveIndicator = rowActiveIndicator;
091: }
092:
093: /**
094: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
095: */
096: protected LinkedHashMap toStringMapper() {
097: LinkedHashMap m = new LinkedHashMap();
098: m.put("proposalPurposeCode", this.proposalPurposeCode);
099: return m;
100: }
101:
102: }
|