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.AMOUNT;
21: import static org.kuali.kfs.KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE;
22: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_OBJECT_CODE;
23: import static org.kuali.kfs.KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
24: import static org.kuali.kfs.KFSPropertyConstants.ORGANIZATION_REFERENCE_ID;
25: import static org.kuali.kfs.KFSPropertyConstants.PROJECT_CODE;
26: import static org.kuali.kfs.KFSPropertyConstants.REFERENCE_NUMBER;
27: import static org.kuali.kfs.KFSPropertyConstants.SUB_ACCOUNT_NUMBER;
28:
29: import org.kuali.kfs.bo.AccountingLineParserBase;
30:
31: /**
32: * This class represents a <code>PreEncumbranceDocument</code> accounting line parser.
33: *
34: * @see org.kuali.module.financial.document.PreEncumbranceDocument
35: */
36: public class PreEncumbranceDocumentAccountingLineParser extends
37: AccountingLineParserBase {
38: private static final String[] SOURCE_FORMAT = {
39: CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER,
40: FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE,
41: PROJECT_CODE, ORGANIZATION_REFERENCE_ID, AMOUNT };
42: private static final String[] TARGET_FORMAT = {
43: CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER,
44: FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE,
45: PROJECT_CODE, ORGANIZATION_REFERENCE_ID, REFERENCE_NUMBER,
46: AMOUNT };
47:
48: /**
49: * @see org.kuali.core.bo.AccountingLineParserBase#getSourceAccountingLineFormat()
50: */
51: @Override
52: public String[] getSourceAccountingLineFormat() {
53: return SOURCE_FORMAT;
54: }
55:
56: /**
57: * @see org.kuali.core.bo.AccountingLineParserBase#getTargetAccountingLineFormat()
58: */
59: @Override
60: public String[] getTargetAccountingLineFormat() {
61: return TARGET_FORMAT;
62: }
63:
64: }
|