1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
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.ole.module.cg.businessobject;
18
19 import java.util.LinkedHashMap;
20
21 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23
24 /**
25 *
26 */
27 public class GrantDescription extends PersistableBusinessObjectBase implements MutableInactivatable {
28
29 private String grantDescriptionCode;
30 private String grantDescription;
31 private boolean active;
32
33 /**
34 * Default constructor.
35 */
36 public GrantDescription() {
37 }
38
39 /**
40 * Gets the grantDescriptionCode attribute.
41 *
42 * @return Returns the grantDescriptionCode
43 */
44 public String getGrantDescriptionCode() {
45 return grantDescriptionCode;
46 }
47
48 /**
49 * Sets the grantDescriptionCode attribute.
50 *
51 * @param grantDescriptionCode The grantDescriptionCode to set.
52 */
53 public void setGrantDescriptionCode(String grantDescriptionCode) {
54 this.grantDescriptionCode = grantDescriptionCode;
55 }
56
57
58 /**
59 * Gets the grantDescription attribute.
60 *
61 * @return Returns the grantDescription
62 */
63 public String getGrantDescription() {
64 return grantDescription;
65 }
66
67 /**
68 * Sets the grantDescription attribute.
69 *
70 * @param grantDescription The grantDescription to set.
71 */
72 public void setGrantDescription(String grantDescription) {
73 this.grantDescription = grantDescription;
74 }
75
76
77 /**
78 * Sets the active attribute.
79 *
80 * @param active The active to set.
81 */
82 public void setActive(boolean active) {
83 this.active = active;
84 }
85
86 /**
87 * This method returns a boolean identifying whether or not this grant description is active or inactive.
88 *
89 * @return True if the grant description is active, false if its inactive.
90 */
91 public boolean isActive() {
92 return active;
93 }
94
95 /**
96 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
97 */
98 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
99 LinkedHashMap m = new LinkedHashMap();
100 m.put("grantDescriptionCode", this.grantDescriptionCode);
101 return m;
102 }
103 }