View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.cam.businessobject;
20  
21  import java.util.LinkedHashMap;
22  
23  import org.kuali.kfs.coa.businessobject.ObjectSubType;
24  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
25  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26  
27  /**
28   * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
29   */
30  public class AssetDepreciationConvention extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private String financialObjectSubTypeCode;
33      private String depreciationConventionCode;
34      private boolean active;
35  
36      private ObjectSubType financialObjectSubType;
37  
38      /**
39       * Default constructor.
40       */
41      public AssetDepreciationConvention() {
42  
43      }
44  
45      /**
46       * Gets the financialObjectSubTypeCode attribute.
47       * 
48       * @return Returns the financialObjectSubTypeCode
49       */
50      public String getFinancialObjectSubTypeCode() {
51          return financialObjectSubTypeCode;
52      }
53  
54      /**
55       * Sets the financialObjectSubTypeCode attribute.
56       * 
57       * @param financialObjectSubTypeCode The financialObjectSubTypeCode to set.
58       */
59      public void setFinancialObjectSubTypeCode(String financialObjectSubTypeCode) {
60          this.financialObjectSubTypeCode = financialObjectSubTypeCode;
61      }
62  
63  
64      /**
65       * Gets the depreciationConventionCode attribute.
66       * 
67       * @return Returns the depreciationConventionCode
68       */
69      public String getDepreciationConventionCode() {
70          return depreciationConventionCode;
71      }
72  
73      /**
74       * Sets the depreciationConventionCode attribute.
75       * 
76       * @param depreciationConventionCode The depreciationConventionCode to set.
77       */
78      public void setDepreciationConventionCode(String depreciationConventionCode) {
79          this.depreciationConventionCode = depreciationConventionCode;
80      }
81  
82      /**
83       * Gets the financialObjectSubType attribute.
84       * 
85       * @return Returns the financialObjectSubType.
86       */
87      public ObjectSubType getFinancialObjectSubType() {
88          return financialObjectSubType;
89      }
90  
91      /**
92       * Sets the financialObjectSubType attribute value.
93       * 
94       * @param financialObjectSubType The financialObjectSubType to set.
95       * @deprecated
96       */
97      public void setFinancialObjectSubType(ObjectSubType financialObjectSubType) {
98          this.financialObjectSubType = financialObjectSubType;
99      }
100 
101     /**
102      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
103      */
104     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
105         LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
106         m.put("financialObjectSubTypeCode", this.financialObjectSubTypeCode);
107         return m;
108     }
109 
110     /**
111      * Gets the active attribute.
112      * 
113      * @return Returns the active
114      */
115     public boolean isActive() {
116         return active;
117     }
118 
119     /**
120      * Sets the active attribute.
121      * 
122      * @param active The active to set.
123      */
124     public void setActive(boolean active) {
125         this.active = active;
126     }
127 }