001/* 002 * Copyright 2007 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.vnd.businessobject; 018 019import java.util.LinkedHashMap; 020 021import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 022import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 023 024/** 025 * Broad categories in which a vendor may be included, exclusively, as opposed to a kind of basic business organization that the 026 * vendor may have, which would be an instance of <code>OwnershipType</code>. 027 * 028 * @see org.kuali.ole.vnd.businessobject.OwnershipType 029 */ 030public class OwnershipCategory extends PersistableBusinessObjectBase implements MutableInactivatable { 031 032 private String vendorOwnershipCategoryCode; 033 private String vendorOwnershipCategoryDescription; 034 private boolean active; 035 036 /** 037 * Default constructor. 038 */ 039 public OwnershipCategory() { 040 041 } 042 043 public String getVendorOwnershipCategoryCode() { 044 045 return vendorOwnershipCategoryCode; 046 } 047 048 public void setVendorOwnershipCategoryCode(String vendorOwnershipCategoryCode) { 049 this.vendorOwnershipCategoryCode = vendorOwnershipCategoryCode; 050 } 051 052 public String getVendorOwnershipCategoryDescription() { 053 054 return vendorOwnershipCategoryDescription; 055 } 056 057 public void setVendorOwnershipCategoryDescription(String vendorOwnershipCategoryDescription) { 058 this.vendorOwnershipCategoryDescription = vendorOwnershipCategoryDescription; 059 } 060 061 public boolean isActive() { 062 063 return active; 064 } 065 066 public void setActive(boolean active) { 067 this.active = active; 068 } 069 070 /** 071 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 072 */ 073 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 074 LinkedHashMap m = new LinkedHashMap(); 075 m.put("vendorOwnershipCategoryCode", this.vendorOwnershipCategoryCode); 076 077 return m; 078 } 079}