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 AssetRetirementReason extends PersistableBusinessObjectBase implements Inactivateable {
027    
028        private String retirementReasonCode;
029        private String retirementReasonName;
030        private boolean active;
031        private boolean retirementReasonRestrictionIndicator;
032    
033        /**
034         * Default constructor.
035         */
036        public AssetRetirementReason() {
037    
038        }
039    
040        /**
041         * Gets the retirementReasonCode attribute.
042         * 
043         * @return Returns the retirementReasonCode
044         */
045        public String getRetirementReasonCode() {
046            return retirementReasonCode;
047        }
048    
049        /**
050         * Sets the retirementReasonCode attribute.
051         * 
052         * @param retirementReasonCode The retirementReasonCode to set.
053         */
054        public void setRetirementReasonCode(String retirementReasonCode) {
055            this.retirementReasonCode = retirementReasonCode;
056        }
057    
058    
059        /**
060         * Gets the retirementReasonName attribute.
061         * 
062         * @return Returns the retirementReasonName
063         */
064        public String getRetirementReasonName() {
065            return retirementReasonName;
066        }
067    
068        /**
069         * Sets the retirementReasonName attribute.
070         * 
071         * @param retirementReasonName The retirementReasonName to set.
072         */
073        public void setRetirementReasonName(String retirementReasonName) {
074            this.retirementReasonName = retirementReasonName;
075        }
076    
077    
078        /**
079         * Gets the active attribute.
080         * 
081         * @return Returns the active
082         */
083        public boolean isActive() {
084            return active;
085        }
086    
087        /**
088         * Sets the active attribute.
089         * 
090         * @param active The active to set.
091         */
092        public void setActive(boolean active) {
093            this.active = active;
094        }
095    
096        /**
097         * Gets the retirementReasonRestrictionIndicator attribute.
098         * 
099         * @return Returns the retirementReasonRestrictionIndicator.
100         */
101        public boolean isRetirementReasonRestrictionIndicator() {
102            return retirementReasonRestrictionIndicator;
103        }
104    
105        /**
106         * Sets the retirementReasonRestrictionIndicator attribute value.
107         * 
108         * @param retirementReasonRestrictionIndicator The retirementReasonRestrictionIndicator to set.
109         */
110        public void setRetirementReasonRestrictionIndicator(boolean retirementReasonRestrictionIndicator) {
111            this.retirementReasonRestrictionIndicator = retirementReasonRestrictionIndicator;
112        }
113    
114        /**
115         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
116         */
117        protected LinkedHashMap toStringMapper() {
118            LinkedHashMap m = new LinkedHashMap();
119            m.put("retirementReasonCode", this.retirementReasonCode);
120            return m;
121        }
122    
123    }