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.rice.kns.bo.Inactivateable;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022
023 /**
024 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
025 */
026 public class AssetDepreciationMethod extends PersistableBusinessObjectBase implements Inactivateable {
027
028 private String depreciationMethodCode;
029 private String depreciationMethodName;
030 private boolean active;
031
032 /**
033 * Default constructor.
034 */
035 public AssetDepreciationMethod() {
036
037 }
038
039 /**
040 * Gets the depreciationMethodCode attribute.
041 *
042 * @return Returns the depreciationMethodCode
043 */
044 public String getDepreciationMethodCode() {
045 return depreciationMethodCode;
046 }
047
048 /**
049 * Sets the depreciationMethodCode attribute.
050 *
051 * @param depreciationMethodCode The depreciationMethodCode to set.
052 */
053 public void setDepreciationMethodCode(String depreciationMethodCode) {
054 this.depreciationMethodCode = depreciationMethodCode;
055 }
056
057
058 /**
059 * Gets the depreciationMethodName attribute.
060 *
061 * @return Returns the depreciationMethodName
062 */
063 public String getDepreciationMethodName() {
064 return depreciationMethodName;
065 }
066
067 /**
068 * Sets the depreciationMethodName attribute.
069 *
070 * @param depreciationMethodName The depreciationMethodName to set.
071 */
072 public void setDepreciationMethodName(String depreciationMethodName) {
073 this.depreciationMethodName = depreciationMethodName;
074 }
075
076
077 /**
078 * Gets the active attribute.
079 *
080 * @return Returns the active
081 */
082 public boolean isActive() {
083 return active;
084 }
085
086 /**
087 * Sets the active attribute.
088 *
089 * @param active The active to set.
090 */
091 public void setActive(boolean active) {
092 this.active = active;
093 }
094
095
096 /**
097 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
098 */
099 protected LinkedHashMap<String, String> toStringMapper() {
100 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
101 m.put("depreciationMethodCode", this.depreciationMethodCode);
102 return m;
103 }
104 }