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: * Broad categories in which a vendor may be included, exclusively, as opposed to a kind of basic business organization that the
25: * vendor may have, which would be an instance of <code>OwnershipType</code>.
26: *
27: * @see org.kuali.module.vendor.bo.OwnershipType
28: */
29: public class OwnershipCategory extends PersistableBusinessObjectBase {
30:
31: private String vendorOwnershipCategoryCode;
32: private String vendorOwnershipCategoryDescription;
33: private boolean active;
34:
35: /**
36: * Default constructor.
37: */
38: public OwnershipCategory() {
39:
40: }
41:
42: public String getVendorOwnershipCategoryCode() {
43:
44: return vendorOwnershipCategoryCode;
45: }
46:
47: public void setVendorOwnershipCategoryCode(
48: String vendorOwnershipCategoryCode) {
49: this .vendorOwnershipCategoryCode = vendorOwnershipCategoryCode;
50: }
51:
52: public String getVendorOwnershipCategoryDescription() {
53:
54: return vendorOwnershipCategoryDescription;
55: }
56:
57: public void setVendorOwnershipCategoryDescription(
58: String vendorOwnershipCategoryDescription) {
59: this .vendorOwnershipCategoryDescription = vendorOwnershipCategoryDescription;
60: }
61:
62: public boolean isActive() {
63:
64: return active;
65: }
66:
67: public void setActive(boolean active) {
68: this .active = active;
69: }
70:
71: /**
72: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
73: */
74: protected LinkedHashMap toStringMapper() {
75: LinkedHashMap m = new LinkedHashMap();
76: m.put("vendorOwnershipCategoryCode",
77: this.vendorOwnershipCategoryCode);
78:
79: return m;
80: }
81: }
|