View Javadoc
1   /*
2    * Copyright 2005-2006 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.ole.fp.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.core.api.util.type.KualiDecimal;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * This class is used to represent a non-resident alien tax percent.  This is the percentage of a total 
27   * reimbursement that is collected in taxes for non-resident aliens.
28   */
29  public class NonResidentAlienTaxPercent extends PersistableBusinessObjectBase implements MutableInactivatable {
30  
31      private String incomeClassCode;
32      private String incomeTaxTypeCode;
33      private boolean active;
34      
35      private KualiDecimal incomeTaxPercent;
36  
37      private TaxIncomeClassCode incomeClass;
38  
39      /**
40       * Default no-arg constructor.
41       */
42      public NonResidentAlienTaxPercent() {
43  
44      }
45  
46      /**
47       * Gets the incomeClassCode attribute.
48       * 
49       * @return Returns the incomeClassCode
50       */
51      public String getIncomeClassCode() {
52          return incomeClassCode;
53      }
54  
55  
56      /**
57       * Sets the incomeClassCode attribute.
58       * 
59       * @param incomeClassCode The incomeClassCode to set.
60       */
61      public void setIncomeClassCode(String incomeClassCode) {
62          this.incomeClassCode = incomeClassCode;
63      }
64  
65      /**
66       * Gets the incomeTaxTypeCode attribute.
67       * 
68       * @return Returns the incomeTaxTypeCode
69       */
70      public String getIncomeTaxTypeCode() {
71          return incomeTaxTypeCode;
72      }
73  
74  
75      /**
76       * Sets the incomeTaxTypeCode attribute.
77       * 
78       * @param incomeTaxTypeCode The incomeTaxTypeCode to set.
79       */
80      public void setIncomeTaxTypeCode(String incomeTaxTypeCode) {
81          this.incomeTaxTypeCode = incomeTaxTypeCode;
82      }
83  
84      /**
85       * Gets the incomeTaxPercent attribute.
86       * 
87       * @return Returns the incomeTaxPercent
88       */
89      public KualiDecimal getIncomeTaxPercent() {
90          return incomeTaxPercent;
91      }
92  
93  
94      /**
95       * Sets the incomeTaxPercent attribute.
96       * 
97       * @param incomeTaxPercent The incomeTaxPercent to set.
98       */
99      public void setIncomeTaxPercent(KualiDecimal incomeTaxPercent) {
100         this.incomeTaxPercent = incomeTaxPercent;
101     }
102 
103     /**
104      * Gets the incomeClass attribute.
105      * 
106      * @return Returns the incomeClass
107      */
108     public TaxIncomeClassCode getIncomeClass() {
109         return incomeClass;
110     }
111 
112 
113     /**
114      * Sets the incomeClass attribute.
115      * 
116      * @param incomeClass The incomeClass to set.
117      * @deprecated
118      */
119     public void setIncomeClass(TaxIncomeClassCode incomeClass) {
120         this.incomeClass = incomeClass;
121     }
122 
123     /**
124      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
125      */
126     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
127         LinkedHashMap m = new LinkedHashMap();
128         m.put("incomeClassCode", this.incomeClassCode);
129         m.put("incomeTaxTypeCode", this.incomeTaxTypeCode);
130         if (this.incomeTaxPercent != null) {
131             m.put("incomeTaxPercent", this.incomeTaxPercent.toString());
132         }
133         return m;
134     }
135 
136     /**
137      * Gets the active attribute. 
138      * @return Returns the active.
139      */
140     public boolean isActive() {
141         return active;
142     }
143 
144     /**
145      * Sets the active attribute value.
146      * @param active The active to set.
147      */
148     public void setActive(boolean active) {
149         this.active = active;
150     }
151 }