org.kuali.kfs.module.endow.util
Interface LineParser

All Known Implementing Classes:
LineParserBase

public interface LineParser

Defines an abstraction for parsing serialized PurApItem lines.


Method Summary
 List<EndowmentTransactionLine> importLines(org.apache.struts.upload.FormFile lineFile, Class<? extends EndowmentTransactionLine> lineClass, String documentNumber)
          Parses the items from the specified import file line by line, and generates items of the specified type from the parsed data.
 

Method Detail

importLines

List<EndowmentTransactionLine> importLines(org.apache.struts.upload.FormFile lineFile,
                                           Class<? extends EndowmentTransactionLine> lineClass,
                                           String documentNumber)
                                           throws Exception
Parses the items from the specified import file line by line, and generates items of the specified type from the parsed data.

Parameters:
itemFile - the input file from which items are parsed
itemClass - a subclass of PurApItem, of which new items shall be generated
documentNumber - the number of the docment that contains the items to be imported
Returns:
a list of items of a subclass of PurApItem.
Throws:
Exception


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