001/* 002 * Copyright 2006 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 */ 016 017package org.kuali.ole.module.purap.businessobject; 018 019import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 020import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 021 022import java.util.LinkedHashMap; 023 024/** 025 * Delivery Required Date Reason Business Object. Defines the reason why a delivery date is required. 026 */ 027public class DeliveryRequiredDateReason extends PersistableBusinessObjectBase implements MutableInactivatable { 028 029 private String deliveryRequiredDateReasonCode; 030 private String deliveryRequiredDateReasonDescription; 031 private boolean active; 032 033 /** 034 * Default constructor. 035 */ 036 public DeliveryRequiredDateReason() { 037 038 } 039 040 public boolean isActive() { 041 return active; 042 } 043 044 public void setActive(boolean active) { 045 this.active = active; 046 } 047 048 public String getDeliveryRequiredDateReasonCode() { 049 return deliveryRequiredDateReasonCode; 050 } 051 052 public void setDeliveryRequiredDateReasonCode(String deliveryRequiredDateReasonCode) { 053 this.deliveryRequiredDateReasonCode = deliveryRequiredDateReasonCode; 054 } 055 056 public String getDeliveryRequiredDateReasonDescription() { 057 return deliveryRequiredDateReasonDescription; 058 } 059 060 public void setDeliveryRequiredDateReasonDescription(String deliveryRequiredDateReasonDescription) { 061 this.deliveryRequiredDateReasonDescription = deliveryRequiredDateReasonDescription; 062 } 063 064 /** 065 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 066 */ 067 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 068 LinkedHashMap m = new LinkedHashMap(); 069 m.put("deliveryRequiredDateReasonCode", this.deliveryRequiredDateReasonCode); 070 return m; 071 } 072}