org.kuali.kfs.module.endow.businessobject
Interface EndowmentAccountingLineParser

All Known Implementing Classes:
EndowmentAccountingLineParserBase

public interface EndowmentAccountingLineParser


Method Summary
 String getExpectedEndowmentAccountingLineFormatAsString(Class<? extends EndowmentAccountingLine> accountingLineClass)
           
 String[] getSourceEndowmentAccountingLineFormat()
           
 String[] getTargetEndowmentAccountingLineFormat()
           
 List<SourceEndowmentAccountingLine> importSourceEndowmentAccountingLines(String fileName, InputStream stream, EndowmentAccountingLinesDocument document)
          Generates a list of SourceEndowmentAccountingLine from the inputStream
 List<TargetEndowmentAccountingLine> importTargetEndowmentAccountingLines(String fileName, InputStream stream, EndowmentAccountingLinesDocument document)
          Generates a list of TargetEndowmentAccountingLine from the inputStream
 SourceEndowmentAccountingLine parseSourceEndowmentAccountingLine(EndowmentAccountingLinesDocument transactionalDocument, String sourceAccountingLineString)
          Parses a comma delimited string into an SourceEndowmentAccountingLine by populating the attributes found in the getSourceAccountingLineFormat()
 TargetEndowmentAccountingLine parseTargetEndowmentAccountingLine(EndowmentAccountingLinesDocument transactionalDocument, String targetAccountingLineString)
          Parses a comma delimited string into an TargetEndowmentAccountingLine by populating the attributes found in the getTargetAccountingLineFormat()
 

Method Detail

getSourceEndowmentAccountingLineFormat

String[] getSourceEndowmentAccountingLineFormat()
Returns:
SourceEndowmentAccountingLine attribute format

getTargetEndowmentAccountingLineFormat

String[] getTargetEndowmentAccountingLineFormat()
Returns:
TargetEndowmentAccountingLine attribute format

getExpectedEndowmentAccountingLineFormatAsString

String getExpectedEndowmentAccountingLineFormatAsString(Class<? extends EndowmentAccountingLine> accountingLineClass)
Parameters:
accountingLineClass -
Returns:
String representation of the String[] attribute format with each attribute separated by a comma.

parseSourceEndowmentAccountingLine

SourceEndowmentAccountingLine parseSourceEndowmentAccountingLine(EndowmentAccountingLinesDocument transactionalDocument,
                                                                 String sourceAccountingLineString)
Parses a comma delimited string into an SourceEndowmentAccountingLine by populating the attributes found in the getSourceAccountingLineFormat()

Parameters:
transactionalDocument -
sourceAccountingLineString -
Returns:
SourceEndowmentAccountingLine

parseTargetEndowmentAccountingLine

TargetEndowmentAccountingLine parseTargetEndowmentAccountingLine(EndowmentAccountingLinesDocument transactionalDocument,
                                                                 String targetAccountingLineString)
Parses a comma delimited string into an TargetEndowmentAccountingLine by populating the attributes found in the getTargetAccountingLineFormat()

Parameters:
transactionalDocument -
targetAccountingLineString -
Returns:
TargetEndowmentAccountingLine

importSourceEndowmentAccountingLines

List<SourceEndowmentAccountingLine> importSourceEndowmentAccountingLines(String fileName,
                                                                         InputStream stream,
                                                                         EndowmentAccountingLinesDocument document)
Generates a list of SourceEndowmentAccountingLine from the inputStream

Parameters:
stream -
document -
Returns:
List containing SourceEndowmentAccountingLines

importTargetEndowmentAccountingLines

List<TargetEndowmentAccountingLine> importTargetEndowmentAccountingLines(String fileName,
                                                                         InputStream stream,
                                                                         EndowmentAccountingLinesDocument document)
Generates a list of TargetEndowmentAccountingLine from the inputStream

Parameters:
stream -
document -
Returns:
List containing TargetEndowmentAccountingLines


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.