001 /* 002 * Copyright 2011 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 017 package org.kuali.kfs.vnd.businessobject; 018 019 import java.util.LinkedHashMap; 020 021 import org.kuali.rice.kns.bo.Inactivateable; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 024 /** 025 * Special Conditions for Shipping. These are typically conditions of products which affect the way they are shipped. 026 * 027 * @see org.kuali.kfs.vnd.businessobject.VendorShippingSpecialCondition 028 */ 029 public class ShippingSpecialCondition extends PersistableBusinessObjectBase implements Inactivateable{ 030 031 private String vendorShippingSpecialConditionCode; 032 private String vendorShippingSpecialConditionDescription; 033 private boolean active; 034 035 /** 036 * Default constructor. 037 */ 038 public ShippingSpecialCondition() { 039 040 } 041 042 public String getVendorShippingSpecialConditionCode() { 043 044 return vendorShippingSpecialConditionCode; 045 } 046 047 public void setVendorShippingSpecialConditionCode(String vendorShippingSpecialConditionCode) { 048 this.vendorShippingSpecialConditionCode = vendorShippingSpecialConditionCode; 049 } 050 051 public String getVendorShippingSpecialConditionDescription() { 052 053 return vendorShippingSpecialConditionDescription; 054 } 055 056 public void setVendorShippingSpecialConditionDescription(String vendorShippingSpecialConditionDescription) { 057 this.vendorShippingSpecialConditionDescription = vendorShippingSpecialConditionDescription; 058 } 059 060 public boolean isActive() { 061 062 return active; 063 } 064 065 public void setActive(boolean active) { 066 this.active = active; 067 } 068 069 /** 070 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 071 */ 072 protected LinkedHashMap toStringMapper() { 073 LinkedHashMap m = new LinkedHashMap(); 074 m.put("vendorShippingSpecialConditionCode", this.vendorShippingSpecialConditionCode); 075 076 return m; 077 } 078 }