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 * 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.kfs.vnd.businessobject.OwnershipType
029 */
030 public class OwnershipCategory extends PersistableBusinessObjectBase implements Inactivateable{
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.kns.bo.BusinessObjectBase#toStringMapper()
072 */
073 protected LinkedHashMap toStringMapper() {
074 LinkedHashMap m = new LinkedHashMap();
075 m.put("vendorOwnershipCategoryCode", this.vendorOwnershipCategoryCode);
076
077 return m;
078 }
079 }