1 /*
2 * Copyright 2007 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 package org.kuali.ole.gl.batch.service.impl;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.core.api.util.type.KualiDecimal;
20
21 /**
22 * Data for reconciliation of columns
23 */
24 public class ColumnReconciliation {
25 private String fieldName;
26 private String[] tokenizedFieldNames;
27 private KualiDecimal dollarAmount;
28
29 public static final String COLUMN_NAME_DELIMITERS = "+";
30
31 /**
32 * Constructs a ColumnReconciliation.java.
33 */
34 public ColumnReconciliation() {
35 }
36
37 /**
38 * Gets the dollarAmount attribute.
39 *
40 * @return Returns the dollarAmount.
41 */
42 public KualiDecimal getDollarAmount() {
43 return dollarAmount;
44 }
45
46 /**
47 * Sets the dollarAmount attribute value.
48 *
49 * @param dollarAmount The dollarAmount to set.
50 */
51 public void setDollarAmount(KualiDecimal dollarAmount) {
52 this.dollarAmount = dollarAmount;
53 }
54
55 /**
56 * Gets the fieldName attribute.
57 *
58 * @return Returns the fieldName.
59 */
60 public String getFieldName() {
61 return fieldName;
62 }
63
64 /**
65 * Gets the tokenizedFieldNames attribute
66 *
67 * @return
68 */
69 public String[] getTokenizedFieldNames() {
70 return tokenizedFieldNames;
71 }
72
73 /**
74 * Sets the fieldName and tokenizedFieldNames attribute values.
75 *
76 * @param fieldName The fieldName to set.
77 */
78 public void setFieldName(String fieldName) {
79 this.fieldName = fieldName;
80 this.tokenizedFieldNames = StringUtils.split(fieldName, COLUMN_NAME_DELIMITERS);
81 }
82 }