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