|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemParser
Defines an abstraction for parsing serialized PurApItem
lines.
Method Summary | |
---|---|
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. |
Method Detail |
---|
String[] getItemFormat()
String getExpectedItemFormatAsString(Class<? extends PurApItem> itemClass)
itemClass
- the class of the items to be imported
PurApItem 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 generated
List<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 imported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |