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.kfs.module.endow.businessobject.ClassCode; 023 import org.kuali.kfs.module.endow.businessobject.FeeMethodCodeBase; 024 025 /** 026 * Business Object for Fee Class Code. 027 */ 028 public class FeeClassCode extends FeeMethodCodeBase { 029 private static final Logger LOG = Logger.getLogger(FeeClassCode.class); 030 031 private String feeClassCode; 032 033 private ClassCode classCode; 034 035 /** 036 * Default constructor. 037 */ 038 public FeeClassCode() { 039 super(); 040 } 041 042 /** 043 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 044 */ 045 @Override 046 protected LinkedHashMap toStringMapper() { 047 LinkedHashMap<String, Object> m = new LinkedHashMap<String, Object>(); 048 m.put(EndowPropertyConstants.FEE_METHOD_CODE, super.getFeeMethodCode()); 049 m.put(EndowPropertyConstants.FEE_CLASS_CODE, this.getFeeClassCode()); 050 return m; 051 052 } 053 054 /** 055 * This method gets feeClassCode 056 * 057 * @return feeClassCode 058 */ 059 public String getFeeClassCode() { 060 return feeClassCode; 061 } 062 063 /** 064 * This method sets feeClassCode. 065 * 066 * @param feeClassCode 067 */ 068 public void setFeeClassCode(String feeClassCode) { 069 this.feeClassCode = feeClassCode; 070 } 071 072 /** 073 * This method gets the classCode. 074 * 075 * @return classCode 076 */ 077 public ClassCode getClassCode() { 078 return classCode; 079 } 080 081 /** 082 * This method sets the classCode. 083 * 084 * @param classCode 085 */ 086 public void setClassCode(ClassCode classCode) { 087 this.classCode = classCode; 088 } 089 }