001/* 002 * Copyright 2007-2008 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.sys.businessobject; 017 018import java.util.LinkedHashMap; 019 020import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 021import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 022 023/** 024 * Unit Of Measure Business Object. 025 */ 026public class UnitOfMeasure extends PersistableBusinessObjectBase implements MutableInactivatable { 027 028 private String itemUnitOfMeasureCode; 029 private String itemUnitOfMeasureDescription; 030 private boolean active; 031 032 /** 033 * Default constructor. 034 */ 035 public UnitOfMeasure() { 036 037 } 038 039 public String getItemUnitOfMeasureCode() { 040 return itemUnitOfMeasureCode; 041 } 042 043 public void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode) { 044 this.itemUnitOfMeasureCode = itemUnitOfMeasureCode; 045 } 046 047 public String getItemUnitOfMeasureDescription() { 048 return itemUnitOfMeasureDescription; 049 } 050 051 public void setItemUnitOfMeasureDescription(String itemUnitOfMeasureDescription) { 052 this.itemUnitOfMeasureDescription = itemUnitOfMeasureDescription; 053 } 054 055 public boolean isActive() { 056 return active; 057 } 058 059 public void setActive(boolean active) { 060 this.active = active; 061 } 062 063 /** 064 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 065 */ 066 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 067 LinkedHashMap m = new LinkedHashMap(); 068 m.put("itemUnitOfMeasureCode", this.itemUnitOfMeasureCode); 069 return m; 070 } 071 072}