View Javadoc

1   /*
2    * Copyright 2007 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  
17  package org.kuali.ole.vnd.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * Special Conditions for Shipping. These are typically conditions of products which affect the way they are shipped.
26   * 
27   * @see org.kuali.ole.vnd.businessobject.VendorShippingSpecialCondition
28   */
29  public class ShippingSpecialCondition extends PersistableBusinessObjectBase implements MutableInactivatable{
30  
31      private String vendorShippingSpecialConditionCode;
32      private String vendorShippingSpecialConditionDescription;
33      private boolean active;
34  
35      /**
36       * Default constructor.
37       */
38      public ShippingSpecialCondition() {
39  
40      }
41  
42      public String getVendorShippingSpecialConditionCode() {
43  
44          return vendorShippingSpecialConditionCode;
45      }
46  
47      public void setVendorShippingSpecialConditionCode(String vendorShippingSpecialConditionCode) {
48          this.vendorShippingSpecialConditionCode = vendorShippingSpecialConditionCode;
49      }
50  
51      public String getVendorShippingSpecialConditionDescription() {
52  
53          return vendorShippingSpecialConditionDescription;
54      }
55  
56      public void setVendorShippingSpecialConditionDescription(String vendorShippingSpecialConditionDescription) {
57          this.vendorShippingSpecialConditionDescription = vendorShippingSpecialConditionDescription;
58      }
59  
60      public boolean isActive() {
61  
62          return active;
63      }
64  
65      public void setActive(boolean active) {
66          this.active = active;
67      }
68  
69      /**
70       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
71       */
72      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
73          LinkedHashMap m = new LinkedHashMap();
74          m.put("vendorShippingSpecialConditionCode", this.vendorShippingSpecialConditionCode);
75  
76          return m;
77      }
78  }