org.kuali.kfs.module.bc.util
Class ImportRequestFileParsingHelper
java.lang.Object
org.kuali.kfs.module.bc.util.ImportRequestFileParsingHelper
public class ImportRequestFileParsingHelper
- extends Object
This class contains methods to help parse budget construction import request files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportRequestFileParsingHelper
public ImportRequestFileParsingHelper()
parseLine
public static BudgetConstructionRequestMove parseLine(String lineToParse,
String fieldSeperator,
String textDelimiter,
boolean isAnnual)
- Parses line and creates BudgetConstructionRequestMove object.
- Parameters:
lineToParse
- fieldSeperator
- textDelimiter
-
- Returns:
- the BudgetConstructionRequestMove or null if there was an error parsing the line
isLineCorrectlyFormatted
public static boolean isLineCorrectlyFormatted(String lineToParse,
String fieldSeperator,
String textDelimiter,
boolean isAnnual)
- Checks for the correct number of field separators and text delimiters on line (either annual or monthly file). Does not check if the correct field separator and text delimiter are being used (form level validation should do this)
- Parameters:
lineToParse
- fieldSeperator
- textDelimiter
- isAnnual
-
- Returns:
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.