001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023:
024: /**
025: * This class is used to represent a non-resident alien tax percent. This is the percentage of a total
026: * reimbursement that is collected in taxes for non-resident aliens.
027: */
028: public class NonResidentAlienTaxPercent extends
029: PersistableBusinessObjectBase {
030:
031: private String incomeClassCode;
032: private String incomeTaxTypeCode;
033: private KualiDecimal incomeTaxPercent;
034:
035: private TaxIncomeClassCode incomeClass;
036:
037: /**
038: * Default no-arg constructor.
039: */
040: public NonResidentAlienTaxPercent() {
041:
042: }
043:
044: /**
045: * Gets the incomeClassCode attribute.
046: *
047: * @return Returns the incomeClassCode
048: */
049: public String getIncomeClassCode() {
050: return incomeClassCode;
051: }
052:
053: /**
054: * Sets the incomeClassCode attribute.
055: *
056: * @param incomeClassCode The incomeClassCode to set.
057: */
058: public void setIncomeClassCode(String incomeClassCode) {
059: this .incomeClassCode = incomeClassCode;
060: }
061:
062: /**
063: * Gets the incomeTaxTypeCode attribute.
064: *
065: * @return Returns the incomeTaxTypeCode
066: */
067: public String getIncomeTaxTypeCode() {
068: return incomeTaxTypeCode;
069: }
070:
071: /**
072: * Sets the incomeTaxTypeCode attribute.
073: *
074: * @param incomeTaxTypeCode The incomeTaxTypeCode to set.
075: */
076: public void setIncomeTaxTypeCode(String incomeTaxTypeCode) {
077: this .incomeTaxTypeCode = incomeTaxTypeCode;
078: }
079:
080: /**
081: * Gets the incomeTaxPercent attribute.
082: *
083: * @return Returns the incomeTaxPercent
084: */
085: public KualiDecimal getIncomeTaxPercent() {
086: return incomeTaxPercent;
087: }
088:
089: /**
090: * Sets the incomeTaxPercent attribute.
091: *
092: * @param incomeTaxPercent The incomeTaxPercent to set.
093: */
094: public void setIncomeTaxPercent(KualiDecimal incomeTaxPercent) {
095: this .incomeTaxPercent = incomeTaxPercent;
096: }
097:
098: /**
099: * Gets the incomeClass attribute.
100: *
101: * @return Returns the incomeClass
102: */
103: public TaxIncomeClassCode getIncomeClass() {
104: return incomeClass;
105: }
106:
107: /**
108: * Sets the incomeClass attribute.
109: *
110: * @param incomeClass The incomeClass to set.
111: * @deprecated
112: */
113: public void setIncomeClass(TaxIncomeClassCode incomeClass) {
114: this .incomeClass = incomeClass;
115: }
116:
117: /**
118: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
119: */
120: protected LinkedHashMap toStringMapper() {
121: LinkedHashMap m = new LinkedHashMap();
122: m.put("incomeClassCode", this .incomeClassCode);
123: m.put("incomeTaxTypeCode", this .incomeTaxTypeCode);
124: if (this .incomeTaxPercent != null) {
125: m.put("incomeTaxPercent", this.incomeTaxPercent.toString());
126: }
127: return m;
128: }
129: }
|