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 * A generalized purpose for a proposal.
26 */
27 public class ProposalPurpose extends PersistableBusinessObjectBase implements MutableInactivatable {
28
29 private String proposalPurposeCode;
30 private String proposalPurposeDescription;
31 private boolean active;
32
33 /**
34 * Default constructor.
35 */
36 public ProposalPurpose() {
37 }
38
39 /**
40 * Gets the proposalPurposeCode attribute.
41 *
42 * @return Returns the proposalPurposeCode
43 */
44 public String getProposalPurposeCode() {
45 return proposalPurposeCode;
46 }
47
48 /**
49 * Sets the proposalPurposeCode attribute.
50 *
51 * @param proposalPurposeCode The proposalPurposeCode to set.
52 */
53 public void setProposalPurposeCode(String proposalPurposeCode) {
54 this.proposalPurposeCode = proposalPurposeCode;
55 }
56
57
58 /**
59 * Gets the proposalPurposeDescription attribute.
60 *
61 * @return Returns the proposalPurposeDescription
62 */
63 public String getProposalPurposeDescription() {
64 return proposalPurposeDescription;
65 }
66
67 /**
68 * Sets the proposalPurposeDescription attribute.
69 *
70 * @param proposalPurposeDescription The proposalPurposeDescription to set.
71 */
72 public void setProposalPurposeDescription(String proposalPurposeDescription) {
73 this.proposalPurposeDescription = proposalPurposeDescription;
74 }
75
76 /**
77 * Gets the active attribute.
78 *
79 * @return Returns the active.
80 */
81 public boolean isActive() {
82 return active;
83 }
84
85 /**
86 * Sets the active attribute value.
87 *
88 * @param active The active to set.
89 */
90 public void setActive(boolean active) {
91 this.active = active;
92 }
93
94 /**
95 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
96 */
97 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
98 LinkedHashMap m = new LinkedHashMap();
99 m.put("proposalPurposeCode", this.proposalPurposeCode);
100 return m;
101 }
102
103 }