View Javadoc
1   /*
2    * Copyright 2007-2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
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.ole.sys.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  /**
24   * Unit Of Measure Business Object.
25   */
26  public class UnitOfMeasure extends PersistableBusinessObjectBase implements MutableInactivatable {
27  
28      private String itemUnitOfMeasureCode;
29      private String itemUnitOfMeasureDescription;
30      private boolean active;
31  
32      /**
33       * Default constructor.
34       */
35      public UnitOfMeasure() {
36  
37      }
38  
39      public String getItemUnitOfMeasureCode() {
40          return itemUnitOfMeasureCode;
41      }
42  
43      public void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode) {
44          this.itemUnitOfMeasureCode = itemUnitOfMeasureCode;
45      }
46  
47      public String getItemUnitOfMeasureDescription() {
48          return itemUnitOfMeasureDescription;
49      }
50  
51      public void setItemUnitOfMeasureDescription(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.rice.krad.bo.BusinessObjectBase#toStringMapper()
65       */
66      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
67          LinkedHashMap m = new LinkedHashMap();
68          m.put("itemUnitOfMeasureCode", this.itemUnitOfMeasureCode);
69          return m;
70      }
71  
72  }