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.endow.businessobject;
017    
018    import java.util.LinkedHashMap;
019    
020    import org.apache.log4j.Logger;
021    import org.kuali.kfs.module.endow.EndowPropertyConstants;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    import org.kuali.kfs.module.endow.businessobject.FeeMethod;
024    
025    /**
026     * Base class that is used by Fee Method related objects
027     */
028    public class FeeMethodCodeBase extends PersistableBusinessObjectBase {
029        private static final Logger LOG = Logger.getLogger(FeeMethodCodeBase.class);
030                
031        private String feeMethodCode;
032        private boolean include;
033        
034        private FeeMethod feeMethod;
035        
036        /**
037         * Default constructor.
038         */   
039        public FeeMethodCodeBase() {
040           super();
041        }
042        
043        /**
044         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
045         */
046        @Override
047        protected LinkedHashMap toStringMapper() {
048            LinkedHashMap<String, Object> m = new LinkedHashMap<String, Object>();
049            m.put(EndowPropertyConstants.FEE_METHOD_CODE, this.feeMethodCode);
050            return m;
051            
052        }
053    
054        /**
055         * This method gets feeMethodCode
056         * 
057         * @return feeMethodCode
058         */
059        public String getFeeMethodCode() {
060            return feeMethodCode;
061        }
062    
063        /**
064         * This method sets feeMethodCode.
065         * 
066         * @param feeMethod
067         */
068        public void setFeeMethodCode(String feeMethodCode) {
069            this.feeMethodCode = feeMethodCode;
070        }
071            
072            
073        /**
074         * Gets the feeMethod. 
075         * @return Returns the feeMethod.
076         */
077        public FeeMethod getFeeMethod() {
078            return feeMethod;
079        }
080    
081        /**
082         * Sets the FeeMethod.
083         * @param FeeMethod The FeeMethod to set.
084         */
085        public void setFeeMethod(FeeMethod feeMethod) {
086            this.feeMethod = feeMethod;
087        }
088        
089        /**
090         * Gets the include attribute. 
091         * @return Returns the include.
092         */
093        public boolean getInclude() {
094            return include;
095        }
096    
097        /**
098         * Sets the include attribute value.
099         * @param include The include to set.
100         */
101        public void setInclude(boolean include) {
102            this.include = include;
103        }
104    }