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   * Possible reasons why a Vendor may become inactivated.
26   */
27  public class VendorInactiveReason extends PersistableBusinessObjectBase implements MutableInactivatable{
28  
29      private String vendorInactiveReasonCode;
30      private String vendorInactiveReasonDescription;
31      private boolean active;
32  
33      /**
34       * Default constructor.
35       */
36      public VendorInactiveReason() {
37  
38      }
39  
40      public String getVendorInactiveReasonCode() {
41  
42          return vendorInactiveReasonCode;
43      }
44  
45      public void setVendorInactiveReasonCode(String vendorInactiveReasonCode) {
46          this.vendorInactiveReasonCode = vendorInactiveReasonCode;
47      }
48  
49      public String getVendorInactiveReasonDescription() {
50  
51          return vendorInactiveReasonDescription;
52      }
53  
54      public void setVendorInactiveReasonDescription(String vendorInactiveReasonDescription) {
55          this.vendorInactiveReasonDescription = vendorInactiveReasonDescription;
56      }
57  
58      public boolean isActive() {
59  
60          return active;
61      }
62  
63      public void setActive(boolean active) {
64          this.active = active;
65      }
66  
67      /**
68       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
69       */
70      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
71          LinkedHashMap m = new LinkedHashMap();
72          m.put("vendorInactiveReasonCode", this.vendorInactiveReasonCode);
73  
74          return m;
75      }
76  }