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.coa.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  /**
26   * Instances of this class refer to Catalog of Federal Domestic Assistance codes. Some of these codes are taken directly from a
27   * government web-site. Additional codes can be created manually however. Codes can be updated automatically via the CfdaBatchStep.
28   */
29  public class CFDA extends PersistableBusinessObjectBase implements  MutableInactivatable {
30  
31      private String cfdaNumber;
32      private String cfdaProgramTitleName;
33      private String cfdaMaintenanceTypeId;
34      private boolean active;
35  
36      /**
37       * Default constructor.
38       */
39      public CFDA() {
40      }
41  
42      /**
43       * Gets the cfdaNumber attribute.
44       *
45       * @return Returns the cfdaNumber
46       */
47      public String getCfdaNumber() {
48          return cfdaNumber;
49      }
50  
51      /**
52       * Sets the cfdaNumber attribute.
53       *
54       * @param cfdaNumber The cfdaNumber to set.
55       */
56      public void setCfdaNumber(String cfdaNumber) {
57          this.cfdaNumber = cfdaNumber;
58      }
59  
60  
61      /**
62       * Gets the cfdaProgramTitleName attribute.
63       *
64       * @return Returns the cfdaProgramTitleName
65       */
66      public String getCfdaProgramTitleName() {
67          return cfdaProgramTitleName;
68      }
69  
70      /**
71       * Sets the cfdaProgramTitleName attribute.
72       *
73       * @param cfdaProgramTitleName The cfdaProgramTitleName to set.
74       */
75      public void setCfdaProgramTitleName(String cfdaProgramTitleName) {
76          this.cfdaProgramTitleName = cfdaProgramTitleName;
77      }
78  
79      /**
80       * Gets the cfdaMaintenanceTypeId attribute.
81       *
82       * @return Returns the cfdaMaintenanceTypeId
83       */
84      public String getCfdaMaintenanceTypeId() {
85          return cfdaMaintenanceTypeId;
86      }
87  
88      /**
89       * Sets the cfdaMaintenanceTypeId attribute.
90       *
91       * @param cfdaMaintenanceTypeId The cfdaMaintenanceTypeId to set.
92       */
93      public void setCfdaMaintenanceTypeId(String cfdaMaintenanceTypeId) {
94          this.cfdaMaintenanceTypeId = cfdaMaintenanceTypeId;
95      }
96  
97      /**
98       * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
99       */
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 }