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    
017    package org.kuali.kfs.module.purap.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.rice.kns.bo.Inactivateable;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * Carrier Business Object.
026     */
027    public class Carrier extends PersistableBusinessObjectBase implements Inactivateable{
028    
029        private String carrierCode;
030        private String carrierDescription;
031        private boolean active;
032    
033        public Carrier() {
034    
035        }
036    
037        public String getCarrierCode() {
038            return carrierCode;
039        }
040    
041        public void setCarrierCode(String carrierCode) {
042            this.carrierCode = carrierCode;
043        }
044    
045        public String getCarrierDescription() {
046            return carrierDescription;
047        }
048    
049        public void setCarrierDescription(String carrierDescription) {
050            this.carrierDescription = carrierDescription;
051        }
052    
053        public boolean isActive() {
054            return active;
055        }
056    
057        public void setActive(boolean active) {
058            this.active = active;
059        }
060    
061        /**
062         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
063         */
064        protected LinkedHashMap toStringMapper() {
065            LinkedHashMap m = new LinkedHashMap();
066            m.put("carrierCode", this.carrierCode);
067            return m;
068        }
069    }