public interface ItemParser
PurApItem lines.| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedItemFormatAsString(Class<? extends PurApItem> itemClass)
Returns the expected format of the items to be imported.
|
String[] |
getItemFormat()
Returns the defined format of item lines in the item import file.
|
List<PurApItem> |
importItems(org.apache.struts.upload.FormFile itemFile,
Class<? extends PurApItem> itemClass,
String documentNumber)
Parses the items from the specified import file line by line,
and generates items of the specified type from the parsed data.
|
PurApItem |
parseItem(String itemLine,
Class<? extends PurApItem> itemClass,
String documentNumber)
Parses the specified item line into an instance of the specified PurApItem subclass.
|
String[] getItemFormat()
String getExpectedItemFormatAsString(Class<? extends PurApItem> itemClass)
itemClass - the class of the items to be importedPurApItem parseItem(String itemLine, Class<? extends PurApItem> itemClass, String documentNumber)
itemLine - the item line string to be parseditemClass - the subclass of the item to be generateddocumentNumber - the number of the docment that contains the item to be generatedList<PurApItem> importItems(org.apache.struts.upload.FormFile itemFile, Class<? extends PurApItem> itemClass, String documentNumber)
itemFile - the input file from which items are parseditemClass - a subclass of PurApItem, of which new items shall be generateddocumentNumber - the number of the docment that contains the items to be importedCopyright © 2004–2015 The Kuali Foundation. All rights reserved.