01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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: package org.kuali.module.chart.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.core.bo.PersistableBusinessObjectBase;
21:
22: /**
23: *
24: */
25: public class RestrictedStatus extends PersistableBusinessObjectBase {
26:
27: /**
28: * Default no-arg constructor.
29: */
30: public RestrictedStatus() {
31:
32: }
33:
34: private String accountRestrictedStatusCode;
35: private String accountRestrictedStatusName;
36:
37: /**
38: * Gets the accountRestrictedStatusCode attribute.
39: *
40: * @return Returns the accountRestrictedStatusCode
41: */
42: public String getAccountRestrictedStatusCode() {
43: return accountRestrictedStatusCode;
44: }
45:
46: /**
47: * Sets the accountRestrictedStatusCode attribute.
48: *
49: * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
50: */
51: public void setAccountRestrictedStatusCode(
52: String accountRestrictedStatusCode) {
53: this .accountRestrictedStatusCode = accountRestrictedStatusCode;
54: }
55:
56: /**
57: * Gets the accountRestrictedStatusName attribute.
58: *
59: * @return Returns the accountRestrictedStatusName
60: */
61: public String getAccountRestrictedStatusName() {
62: return accountRestrictedStatusName;
63: }
64:
65: /**
66: * Sets the accountRestrictedStatusName attribute.
67: *
68: * @param accountRestrictedStatusName The accountRestrictedStatusName to set.
69: */
70: public void setAccountRestrictedStatusName(
71: String accountRestrictedStatusName) {
72: this .accountRestrictedStatusName = accountRestrictedStatusName;
73: }
74:
75: /**
76: * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
77: */
78: public String getCodeAndDescription() {
79: String theString = getAccountRestrictedStatusCode() + " - "
80: + getAccountRestrictedStatusName();
81: return theString;
82: }
83:
84: /**
85: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
86: */
87: protected LinkedHashMap toStringMapper() {
88: LinkedHashMap m = new LinkedHashMap();
89:
90: m.put("accountRestrictedStatusCode",
91: this.accountRestrictedStatusCode);
92:
93: return m;
94: }
95: }
|