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: package org.kuali.module.purap.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.core.bo.PersistableBusinessObjectBase;
21:
22: /**
23: * Unit Of Measure Business Object.
24: */
25: public class UnitOfMeasure extends PersistableBusinessObjectBase {
26:
27: private String itemUnitOfMeasureCode;
28: private String itemUnitOfMeasureDescription;
29: private boolean active;
30:
31: /**
32: * Default constructor.
33: */
34: public UnitOfMeasure() {
35:
36: }
37:
38: public String getItemUnitOfMeasureCode() {
39: return itemUnitOfMeasureCode;
40: }
41:
42: public void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode) {
43: this .itemUnitOfMeasureCode = itemUnitOfMeasureCode;
44: }
45:
46: public String getItemUnitOfMeasureDescription() {
47: return itemUnitOfMeasureDescription;
48: }
49:
50: public void setItemUnitOfMeasureDescription(
51: String itemUnitOfMeasureDescription) {
52: this .itemUnitOfMeasureDescription = itemUnitOfMeasureDescription;
53: }
54:
55: public boolean isActive() {
56: return active;
57: }
58:
59: public void setActive(boolean active) {
60: this .active = active;
61: }
62:
63: /**
64: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
65: */
66: protected LinkedHashMap toStringMapper() {
67: LinkedHashMap m = new LinkedHashMap();
68: m.put("itemUnitOfMeasureCode", this.itemUnitOfMeasureCode);
69: return m;
70: }
71:
72: }
|