org.kuali.kfs.module.bc.util
Class ImportRequestFileParsingHelper

java.lang.Object
  extended by org.kuali.kfs.module.bc.util.ImportRequestFileParsingHelper

public class ImportRequestFileParsingHelper
extends Object

This class contains methods to help parse budget construction import request files


Constructor Summary
ImportRequestFileParsingHelper()
           
 
Method Summary
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).
static BudgetConstructionRequestMove parseLine(String lineToParse, String fieldSeperator, String textDelimiter, boolean isAnnual)
          Parses line and creates BudgetConstructionRequestMove object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportRequestFileParsingHelper

public ImportRequestFileParsingHelper()
Method Detail

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.