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: * Arbitrary categories per Vendor Contract for the purpose of tracking various kinds of costs that may be incurred by Purchase
25: * Orders which use the Vendors which have these Contracts.
26: *
27: * @see org.kuali.module.vendor.bo.VendorContract
28: */
29: public class PurchaseOrderCostSource extends
30: PersistableBusinessObjectBase {
31:
32: private String purchaseOrderCostSourceCode;
33: private String purchaseOrderCostSourceDescription;
34: private boolean active;
35:
36: /**
37: * Default constructor.
38: */
39: public PurchaseOrderCostSource() {
40:
41: }
42:
43: public String getPurchaseOrderCostSourceCode() {
44:
45: return purchaseOrderCostSourceCode;
46: }
47:
48: public void setPurchaseOrderCostSourceCode(
49: String purchaseOrderCostSourceCode) {
50: this .purchaseOrderCostSourceCode = purchaseOrderCostSourceCode;
51: }
52:
53: public String getPurchaseOrderCostSourceDescription() {
54:
55: return purchaseOrderCostSourceDescription;
56: }
57:
58: public void setPurchaseOrderCostSourceDescription(
59: String purchaseOrderCostSourceDescription) {
60: this .purchaseOrderCostSourceDescription = purchaseOrderCostSourceDescription;
61: }
62:
63: public boolean isActive() {
64:
65: return active;
66: }
67:
68: public void setActive(boolean active) {
69: this .active = active;
70: }
71:
72: /**
73: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
74: */
75: protected LinkedHashMap toStringMapper() {
76: LinkedHashMap m = new LinkedHashMap();
77: m.put("purchaseOrderCostSourceCode",
78: this.purchaseOrderCostSourceCode);
79:
80: return m;
81: }
82: }
|