01: /*
02: * Copyright 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:
17: package org.kuali.module.vendor.bo;
18:
19: import java.util.LinkedHashMap;
20:
21: import org.kuali.core.bo.PersistableBusinessObjectBase;
22:
23: /**
24: * Possible reasons why a Vendor may become inactivated.
25: */
26: public class VendorInactiveReason extends PersistableBusinessObjectBase {
27:
28: private String vendorInactiveReasonCode;
29: private String vendorInactiveReasonDescription;
30: private boolean active;
31:
32: /**
33: * Default constructor.
34: */
35: public VendorInactiveReason() {
36:
37: }
38:
39: public String getVendorInactiveReasonCode() {
40:
41: return vendorInactiveReasonCode;
42: }
43:
44: public void setVendorInactiveReasonCode(
45: String vendorInactiveReasonCode) {
46: this .vendorInactiveReasonCode = vendorInactiveReasonCode;
47: }
48:
49: public String getVendorInactiveReasonDescription() {
50:
51: return vendorInactiveReasonDescription;
52: }
53:
54: public void setVendorInactiveReasonDescription(
55: String vendorInactiveReasonDescription) {
56: this .vendorInactiveReasonDescription = vendorInactiveReasonDescription;
57: }
58:
59: public boolean isActive() {
60:
61: return active;
62: }
63:
64: public void setActive(boolean active) {
65: this .active = active;
66: }
67:
68: /**
69: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
70: */
71: protected LinkedHashMap toStringMapper() {
72: LinkedHashMap m = new LinkedHashMap();
73: m
74: .put("vendorInactiveReasonCode",
75: this.vendorInactiveReasonCode);
76:
77: return m;
78: }
79: }
|