001/* 002 * Copyright 2007-2009 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 */ 016package org.kuali.ole.gl.businessobject; 017 018import org.kuali.ole.sys.OLEPropertyConstants; 019import org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils; 020import org.kuali.rice.krad.bo.BusinessObject; 021 022/** 023 * This class has utility methods for parsing OriginEntries from Strings 024 */ 025public class OriginEntryFieldUtil extends BusinessObjectStringParserFieldUtils { 026 027 /** 028 * Returns the class to parse into - OriginEntryFull 029 * @see org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils#getBusinessObjectClass() 030 */ 031 @Override 032 public Class<? extends BusinessObject> getBusinessObjectClass() { 033 return OriginEntryFull.class; 034 } 035 036 /** 037 * Returns the fields to be parsed from a String, in order, to form an OriginEntryFull 038 * @see org.kuali.ole.sys.businessobject.BusinessObjectStringParserFieldUtils#getOrderedProperties() 039 */ 040 @Override 041 public String[] getOrderedProperties() { 042 return new String[] { 043 OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, 044 OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, 045 OLEPropertyConstants.ACCOUNT_NUMBER, 046 OLEPropertyConstants.SUB_ACCOUNT_NUMBER, 047 OLEPropertyConstants.FINANCIAL_OBJECT_CODE, 048 OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, 049 OLEPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE, 050 OLEPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE, 051 OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, 052 OLEPropertyConstants.FINANCIAL_DOCUMENT_TYPE_CODE, 053 OLEPropertyConstants.FINANCIAL_SYSTEM_ORIGINATION_CODE, 054 OLEPropertyConstants.DOCUMENT_NUMBER, 055 OLEPropertyConstants.TRANSACTION_ENTRY_SEQUENCE_NUMBER, 056 OLEPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC, 057 OLEPropertyConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT, 058 OLEPropertyConstants.TRANSACTION_DEBIT_CREDIT_CODE, 059 OLEPropertyConstants.TRANSACTION_DATE, 060 OLEPropertyConstants.ORGANIZATION_DOCUMENT_NUMBER, 061 OLEPropertyConstants.PROJECT_CODE, 062 OLEPropertyConstants.ORGANIZATION_REFERENCE_ID, 063 OLEPropertyConstants.REFERENCE_FIN_DOCUMENT_TYPE_CODE, 064 OLEPropertyConstants.FIN_SYSTEM_REF_ORIGINATION_CODE, 065 OLEPropertyConstants.FINANCIAL_DOCUMENT_REFERENCE_NBR, 066 OLEPropertyConstants.FINANCIAL_DOCUMENT_REVERSAL_DATE, 067 OLEPropertyConstants.TRANSACTION_ENCUMBRANCE_UPDT_CD 068 }; 069 } 070}