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   * Broad categories in which a vendor may be included, exclusively, as opposed to a kind of basic business organization that the
26   * vendor may have, which would be an instance of <code>OwnershipType</code>.
27   * 
28   * @see org.kuali.ole.vnd.businessobject.OwnershipType
29   */
30  public class OwnershipCategory extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private String vendorOwnershipCategoryCode;
33      private String vendorOwnershipCategoryDescription;
34      private boolean active;
35  
36      /**
37       * Default constructor.
38       */
39      public OwnershipCategory() {
40  
41      }
42  
43      public String getVendorOwnershipCategoryCode() {
44  
45          return vendorOwnershipCategoryCode;
46      }
47  
48      public void setVendorOwnershipCategoryCode(String vendorOwnershipCategoryCode) {
49          this.vendorOwnershipCategoryCode = vendorOwnershipCategoryCode;
50      }
51  
52      public String getVendorOwnershipCategoryDescription() {
53  
54          return vendorOwnershipCategoryDescription;
55      }
56  
57      public void setVendorOwnershipCategoryDescription(String vendorOwnershipCategoryDescription) {
58          this.vendorOwnershipCategoryDescription = vendorOwnershipCategoryDescription;
59      }
60  
61      public boolean isActive() {
62  
63          return active;
64      }
65  
66      public void setActive(boolean active) {
67          this.active = active;
68      }
69  
70      /**
71       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
72       */
73      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
74          LinkedHashMap m = new LinkedHashMap();
75          m.put("vendorOwnershipCategoryCode", this.vendorOwnershipCategoryCode);
76  
77          return m;
78      }
79  }