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: *
025: */
026: public class GrantDescription extends PersistableBusinessObjectBase {
027:
028: private String grantDescriptionCode;
029: private String grantDescription;
030: private boolean grantDescriptionActiveCode;
031:
032: /**
033: * Default constructor.
034: */
035: public GrantDescription() {
036: }
037:
038: /**
039: * Gets the grantDescriptionCode attribute.
040: *
041: * @return Returns the grantDescriptionCode
042: */
043: public String getGrantDescriptionCode() {
044: return grantDescriptionCode;
045: }
046:
047: /**
048: * Sets the grantDescriptionCode attribute.
049: *
050: * @param grantDescriptionCode The grantDescriptionCode to set.
051: */
052: public void setGrantDescriptionCode(String grantDescriptionCode) {
053: this .grantDescriptionCode = grantDescriptionCode;
054: }
055:
056: /**
057: * Gets the grantDescription attribute.
058: *
059: * @return Returns the grantDescription
060: */
061: public String getGrantDescription() {
062: return grantDescription;
063: }
064:
065: /**
066: * Sets the grantDescription attribute.
067: *
068: * @param grantDescription The grantDescription to set.
069: */
070: public void setGrantDescription(String grantDescription) {
071: this .grantDescription = grantDescription;
072: }
073:
074: /**
075: * Gets the grantDescriptionActiveCode attribute.
076: *
077: * @return Returns the grantDescriptionActiveCode
078: */
079: public boolean getGrantDescriptionActiveCode() {
080: return grantDescriptionActiveCode;
081: }
082:
083: /**
084: * Sets the grantDescriptionActiveCode attribute.
085: *
086: * @param grantDescriptionActiveCode The grantDescriptionActiveCode to set.
087: */
088: public void setGrantDescriptionActiveCode(
089: boolean grantDescriptionActiveCode) {
090: this .grantDescriptionActiveCode = grantDescriptionActiveCode;
091: }
092:
093: /**
094: * This method returns a boolean identifying whether or not this grant description is active or inactive.
095: *
096: * @return True if the grant description is active, false if its inactive.
097: */
098: public boolean isRowActiveIndicator() {
099: return grantDescriptionActiveCode;
100: }
101:
102: /**
103: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
104: */
105: protected LinkedHashMap toStringMapper() {
106: LinkedHashMap m = new LinkedHashMap();
107: m.put("grantDescriptionCode", this.grantDescriptionCode);
108: return m;
109: }
110: }
|