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 package org.kuali.kfs.module.cam.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.kfs.coa.businessobject.ObjectSubType;
021 import org.kuali.rice.kns.bo.Inactivateable;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023
024 /**
025 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
026 */
027 public class AssetDepreciationConvention extends PersistableBusinessObjectBase implements Inactivateable {
028
029 private String financialObjectSubTypeCode;
030 private String depreciationConventionCode;
031 private boolean active;
032
033 private ObjectSubType financialObjectSubType;
034
035 /**
036 * Default constructor.
037 */
038 public AssetDepreciationConvention() {
039
040 }
041
042 /**
043 * Gets the financialObjectSubTypeCode attribute.
044 *
045 * @return Returns the financialObjectSubTypeCode
046 */
047 public String getFinancialObjectSubTypeCode() {
048 return financialObjectSubTypeCode;
049 }
050
051 /**
052 * Sets the financialObjectSubTypeCode attribute.
053 *
054 * @param financialObjectSubTypeCode The financialObjectSubTypeCode to set.
055 */
056 public void setFinancialObjectSubTypeCode(String financialObjectSubTypeCode) {
057 this.financialObjectSubTypeCode = financialObjectSubTypeCode;
058 }
059
060
061 /**
062 * Gets the depreciationConventionCode attribute.
063 *
064 * @return Returns the depreciationConventionCode
065 */
066 public String getDepreciationConventionCode() {
067 return depreciationConventionCode;
068 }
069
070 /**
071 * Sets the depreciationConventionCode attribute.
072 *
073 * @param depreciationConventionCode The depreciationConventionCode to set.
074 */
075 public void setDepreciationConventionCode(String depreciationConventionCode) {
076 this.depreciationConventionCode = depreciationConventionCode;
077 }
078
079 /**
080 * Gets the financialObjectSubType attribute.
081 *
082 * @return Returns the financialObjectSubType.
083 */
084 public ObjectSubType getFinancialObjectSubType() {
085 return financialObjectSubType;
086 }
087
088 /**
089 * Sets the financialObjectSubType attribute value.
090 *
091 * @param financialObjectSubType The financialObjectSubType to set.
092 * @deprecated
093 */
094 public void setFinancialObjectSubType(ObjectSubType financialObjectSubType) {
095 this.financialObjectSubType = financialObjectSubType;
096 }
097
098 /**
099 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
100 */
101 protected LinkedHashMap<String, String> toStringMapper() {
102 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
103 m.put("financialObjectSubTypeCode", this.financialObjectSubTypeCode);
104 return m;
105 }
106
107 /**
108 * Gets the active attribute.
109 *
110 * @return Returns the active
111 */
112 public boolean isActive() {
113 return active;
114 }
115
116 /**
117 * Sets the active attribute.
118 *
119 * @param active The active to set.
120 */
121 public void setActive(boolean active) {
122 this.active = active;
123 }
124 }