View Javadoc
1   /*
2    * Copyright 2007-2009 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.businessobject;
17  
18  import org.kuali.ole.sys.OLEPropertyConstants;
19  import org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils;
20  import org.kuali.rice.krad.bo.BusinessObject;
21  
22  /**
23   * This class has utility methods for parsing OriginEntries from Strings
24   */
25  public class OriginEntryFieldUtil extends BusinessObjectStringParserFieldUtils {
26  
27      /**
28       * Returns the class to parse into - OriginEntryFull
29       * @see org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils#getBusinessObjectClass()
30       */
31      @Override
32      public Class<? extends BusinessObject> getBusinessObjectClass() {
33          return OriginEntryFull.class;
34      }
35  
36      /**
37       * Returns the fields to be parsed from a String, in order, to form an OriginEntryFull
38       * @see org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils#getOrderedProperties()
39       */
40      @Override
41      public String[] getOrderedProperties() {
42          return new String[] {
43                  OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR,
44                  OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE,
45                  OLEPropertyConstants.ACCOUNT_NUMBER,
46                  OLEPropertyConstants.SUB_ACCOUNT_NUMBER,
47                  OLEPropertyConstants.FINANCIAL_OBJECT_CODE,
48                  OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE,
49                  OLEPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE,
50                  OLEPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE,
51                  OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE,
52                  OLEPropertyConstants.FINANCIAL_DOCUMENT_TYPE_CODE,
53                  OLEPropertyConstants.FINANCIAL_SYSTEM_ORIGINATION_CODE,
54                  OLEPropertyConstants.DOCUMENT_NUMBER,
55                  OLEPropertyConstants.TRANSACTION_ENTRY_SEQUENCE_NUMBER,
56                  OLEPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC,
57                  OLEPropertyConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT,
58                  OLEPropertyConstants.TRANSACTION_DEBIT_CREDIT_CODE,
59                  OLEPropertyConstants.TRANSACTION_DATE,
60                  OLEPropertyConstants.ORGANIZATION_DOCUMENT_NUMBER,
61                  OLEPropertyConstants.PROJECT_CODE,
62                  OLEPropertyConstants.ORGANIZATION_REFERENCE_ID,
63                  OLEPropertyConstants.REFERENCE_FIN_DOCUMENT_TYPE_CODE,
64                  OLEPropertyConstants.FIN_SYSTEM_REF_ORIGINATION_CODE,
65                  OLEPropertyConstants.FINANCIAL_DOCUMENT_REFERENCE_NBR,
66                  OLEPropertyConstants.FINANCIAL_DOCUMENT_REVERSAL_DATE,
67                  OLEPropertyConstants.TRANSACTION_ENCUMBRANCE_UPDT_CD
68              };
69      }
70  }