|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountingLineParser
Defines an abstraction for parsing serialized AccountingLines
Method Summary | |
---|---|
String |
getExpectedAccountingLineFormatAsString(Class<? extends AccountingLine> accountingLineClass)
|
String[] |
getSourceAccountingLineFormat()
|
String[] |
getTargetAccountingLineFormat()
|
List |
importSourceAccountingLines(String fileName,
InputStream stream,
AccountingDocument document)
generates a list of SourceAccountingLine from the inputStream |
List |
importTargetAccountingLines(String fileName,
InputStream stream,
AccountingDocument document)
generates a list of TargetAccountingLine from the inputStream |
SourceAccountingLine |
parseSourceAccountingLine(AccountingDocument transactionalDocument,
String sourceAccountingLineString)
parses a comma deliminated string into an SourceAccountingLine by populating the attributes found in the
getSourceAccountingLineFormat() |
TargetAccountingLine |
parseTargetAccountingLine(AccountingDocument transactionalDocument,
String targetAccountingLineString)
parses a comma deliminated string into an TargetAccountingLine by populating the attributes found in the
getTargetAccountingLineFormat() |
Method Detail |
---|
String[] getSourceAccountingLineFormat()
SourceAccountingLine
attribute formatString[] getTargetAccountingLineFormat()
TargetAccountingLine
attribute formatString getExpectedAccountingLineFormatAsString(Class<? extends AccountingLine> accountingLineClass)
accountingLineClass
-
String[]
attribute format with each attribute seperated by a comma.SourceAccountingLine parseSourceAccountingLine(AccountingDocument transactionalDocument, String sourceAccountingLineString)
SourceAccountingLine
by populating the attributes found in the
getSourceAccountingLineFormat()
transactionalDocument
- sourceAccountingLineString
-
TargetAccountingLine parseTargetAccountingLine(AccountingDocument transactionalDocument, String targetAccountingLineString)
TargetAccountingLine
by populating the attributes found in the
getTargetAccountingLineFormat()
transactionalDocument
- targetAccountingLineString
-
List importSourceAccountingLines(String fileName, InputStream stream, AccountingDocument document)
SourceAccountingLine
from the inputStream
stream
- document
-
SourceAccountingLine
sList importTargetAccountingLines(String fileName, InputStream stream, AccountingDocument document)
TargetAccountingLine
from the inputStream
stream
- document
-
SourceAccountingLine
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |