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.gl.batch.service.impl;
017
018 import org.apache.commons.lang.StringUtils;
019 import org.kuali.rice.kns.util.KualiDecimal;
020
021 /**
022 * Data for reconciliation of columns
023 */
024 public class ColumnReconciliation {
025 private String fieldName;
026 private String[] tokenizedFieldNames;
027 private KualiDecimal dollarAmount;
028
029 public static final String COLUMN_NAME_DELIMITERS = "+";
030
031 /**
032 * Constructs a ColumnReconciliation.java.
033 */
034 public ColumnReconciliation() {
035 }
036
037 /**
038 * Gets the dollarAmount attribute.
039 *
040 * @return Returns the dollarAmount.
041 */
042 public KualiDecimal getDollarAmount() {
043 return dollarAmount;
044 }
045
046 /**
047 * Sets the dollarAmount attribute value.
048 *
049 * @param dollarAmount The dollarAmount to set.
050 */
051 public void setDollarAmount(KualiDecimal dollarAmount) {
052 this.dollarAmount = dollarAmount;
053 }
054
055 /**
056 * Gets the fieldName attribute.
057 *
058 * @return Returns the fieldName.
059 */
060 public String getFieldName() {
061 return fieldName;
062 }
063
064 /**
065 * Gets the tokenizedFieldNames attribute
066 *
067 * @return
068 */
069 public String[] getTokenizedFieldNames() {
070 return tokenizedFieldNames;
071 }
072
073 /**
074 * Sets the fieldName and tokenizedFieldNames attribute values.
075 *
076 * @param fieldName The fieldName to set.
077 */
078 public void setFieldName(String fieldName) {
079 this.fieldName = fieldName;
080 this.tokenizedFieldNames = StringUtils.split(fieldName, COLUMN_NAME_DELIMITERS);
081 }
082 }