01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.financial.bo;
18:
19: import static org.kuali.kfs.KFSPropertyConstants.ACCOUNT_NUMBER;
20: import static org.kuali.kfs.KFSPropertyConstants.BASE_BUDGET_ADJUSTMENT_AMOUNT;
21: import static org.kuali.kfs.KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE;
22: import static org.kuali.kfs.KFSPropertyConstants.CURRENT_BUDGET_ADJUSTMENT_AMOUNT;
23: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_10_LINE_AMOUNT;
24: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_11_LINE_AMOUNT;
25: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_12_LINE_AMOUNT;
26: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_1_LINE_AMOUNT;
27: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_2_LINE_AMOUNT;
28: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_3_LINE_AMOUNT;
29: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_4_LINE_AMOUNT;
30: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_5_LINE_AMOUNT;
31: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_6_LINE_AMOUNT;
32: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_7_LINE_AMOUNT;
33: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_8_LINE_AMOUNT;
34: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_DOCUMENT_MONTH_9_LINE_AMOUNT;
35: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_OBJECT_CODE;
36: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
37: import static org.kuali.kfs.KFSPropertyConstants.ORGANIZATION_REFERENCE_ID;
38: import static org.kuali.kfs.KFSPropertyConstants.PROJECT_CODE;
39: import static org.kuali.kfs.KFSPropertyConstants.SUB_ACCOUNT_NUMBER;
40:
41: import org.kuali.kfs.bo.AccountingLineParserBase;
42:
43: /**
44: * This class represents a <code>BudgetAdjustmentDocument</code> accounting line parser
45: */
46: public class BudgetAdjustmentAccountingLineParser extends
47: AccountingLineParserBase {
48: private static final String[] AD_FORMAT = { CHART_OF_ACCOUNTS_CODE,
49: ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE,
50: FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE,
51: ORGANIZATION_REFERENCE_ID,
52: CURRENT_BUDGET_ADJUSTMENT_AMOUNT,
53: BASE_BUDGET_ADJUSTMENT_AMOUNT,
54: FINANCIAL_DOCUMENT_MONTH_1_LINE_AMOUNT,
55: FINANCIAL_DOCUMENT_MONTH_2_LINE_AMOUNT,
56: FINANCIAL_DOCUMENT_MONTH_3_LINE_AMOUNT,
57: FINANCIAL_DOCUMENT_MONTH_4_LINE_AMOUNT,
58: FINANCIAL_DOCUMENT_MONTH_5_LINE_AMOUNT,
59: FINANCIAL_DOCUMENT_MONTH_6_LINE_AMOUNT,
60: FINANCIAL_DOCUMENT_MONTH_7_LINE_AMOUNT,
61: FINANCIAL_DOCUMENT_MONTH_8_LINE_AMOUNT,
62: FINANCIAL_DOCUMENT_MONTH_9_LINE_AMOUNT,
63: FINANCIAL_DOCUMENT_MONTH_10_LINE_AMOUNT,
64: FINANCIAL_DOCUMENT_MONTH_11_LINE_AMOUNT,
65: FINANCIAL_DOCUMENT_MONTH_12_LINE_AMOUNT };
66:
67: /**
68: * Constructs a AdvanceDepositAccountingLineParser.java.
69: */
70: public BudgetAdjustmentAccountingLineParser() {
71: super ();
72: }
73:
74: /**
75: * @see org.kuali.core.bo.AccountingLineParserBase#getSourceAccountingLineFormat()
76: */
77: @Override
78: public String[] getSourceAccountingLineFormat() {
79: return AD_FORMAT;
80: }
81:
82: /**
83: * @see org.kuali.core.bo.AccountingLineParser#getTargetAccountingLineFormat()
84: */
85: @Override
86: public String[] getTargetAccountingLineFormat() {
87: return AD_FORMAT;
88: }
89: }
|