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.module.cg.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 import org.kuali.kfs.integration.cg.ContractsAndGrantsCfda; 024 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 025 026 /** 027 * Instances of this class refer to Catalog of Federal Domestic Assistance codes. Some of these codes are taken directly from a 028 * government web-site. Additional codes can be created manually however. Codes can be updated automatically via the CfdaBatchStep. 029 */ 030 public class CFDA extends PersistableBusinessObjectBase implements ContractsAndGrantsCfda, Inactivateable { 031 032 private String cfdaNumber; 033 private String cfdaProgramTitleName; 034 private String cfdaMaintenanceTypeId; 035 private boolean active; 036 037 /** 038 * Default constructor. 039 */ 040 public CFDA() { 041 } 042 043 /** 044 * Gets the cfdaNumber attribute. 045 * 046 * @return Returns the cfdaNumber 047 */ 048 public String getCfdaNumber() { 049 return cfdaNumber; 050 } 051 052 /** 053 * Sets the cfdaNumber attribute. 054 * 055 * @param cfdaNumber The cfdaNumber to set. 056 */ 057 public void setCfdaNumber(String cfdaNumber) { 058 this.cfdaNumber = cfdaNumber; 059 } 060 061 062 /** 063 * Gets the cfdaProgramTitleName attribute. 064 * 065 * @return Returns the cfdaProgramTitleName 066 */ 067 public String getCfdaProgramTitleName() { 068 return cfdaProgramTitleName; 069 } 070 071 /** 072 * Sets the cfdaProgramTitleName attribute. 073 * 074 * @param cfdaProgramTitleName The cfdaProgramTitleName to set. 075 */ 076 public void setCfdaProgramTitleName(String cfdaProgramTitleName) { 077 this.cfdaProgramTitleName = cfdaProgramTitleName; 078 } 079 080 /** 081 * Gets the cfdaMaintenanceTypeId attribute. 082 * 083 * @return Returns the cfdaMaintenanceTypeId 084 */ 085 public String getCfdaMaintenanceTypeId() { 086 return cfdaMaintenanceTypeId; 087 } 088 089 /** 090 * Sets the cfdaMaintenanceTypeId attribute. 091 * 092 * @param cfdaMaintenanceTypeId The cfdaMaintenanceTypeId to set. 093 */ 094 public void setCfdaMaintenanceTypeId(String cfdaMaintenanceTypeId) { 095 this.cfdaMaintenanceTypeId = cfdaMaintenanceTypeId; 096 } 097 098 /** 099 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 100 */ 101 protected LinkedHashMap toStringMapper() { 102 LinkedHashMap m = new LinkedHashMap(); 103 m.put("cfdaNumber", this.cfdaNumber); 104 return m; 105 } 106 107 /** 108 * This method gets the active value. 109 * 110 * @return The value of the active attribute. 111 */ 112 public boolean isActive() { 113 return active; 114 } 115 116 /** 117 * This method sets the active for this object. 118 * 119 * @param active The value to be assigned to the active attribute. 120 */ 121 public void setActive(boolean active) { 122 this.active = active; 123 } 124 }