|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EdifactFileInteraction
Parses and saves EDIFACT and X12 documents from and to streams.
Method Summary | |
---|---|
org.databene.edifatto.model.Interchange |
createInterchange(String elementType,
String elementName,
String templateUri,
org.databene.edifatto.EdiFormatSymbols symbols,
Map<String,Object> variables)
Creates an Interchange based on a template file and a variable tree |
void |
delete(String elementType,
String elementName,
String filePath)
Deletes a file |
org.databene.edifatto.model.Interchange |
readInterchange(String elementType,
String elementName,
String filePath)
Reads an Interchange from a file system. |
void |
waitUntilExists(String elementType,
String elementName,
String filePath)
Polls the file system until a file at the given path is found or a timeout occurs. |
void |
waitUntilNotExists(String elementType,
String elementName,
String filePath)
Polls the file system until no file is found at the given path. |
void |
writeInterchange(String elementType,
String elementName,
org.databene.edifatto.model.Interchange interchange,
String filePath,
boolean overwrite)
Writes an EDIFACT or X12 interchange to an OutputStream . |
Methods inherited from interface org.aludratest.service.Action |
---|
createAttachments, createDebugAttachments, setSystemConnector |
Method Detail |
---|
void waitUntilExists(String elementType, String elementName, String filePath)
elementType
- elementName
- filePath
- void waitUntilNotExists(String elementType, String elementName, String filePath)
elementType
- elementName
- filePath
- void delete(String elementType, String elementName, String filePath)
elementType
- elementName
- filePath
- the path of the file to deletevoid writeInterchange(String elementType, String elementName, org.databene.edifatto.model.Interchange interchange, String filePath, boolean overwrite)
OutputStream
.
elementType
- elementName
- interchange
- the interchange to persistfilePath
- the path of the file to writeoverwrite
- flag that indicates whether a pre-existing file may be overwrittenorg.databene.edifatto.model.Interchange createInterchange(String elementType, String elementName, String templateUri, org.databene.edifatto.EdiFormatSymbols symbols, Map<String,Object> variables)
Interchange
based on a template file and a variable tree
elementType
- elementName
- templateUri
- the path of the template filesymbols
- the symbols to usevariables
- the variable tree
org.databene.edifatto.model.Interchange readInterchange(String elementType, String elementName, String filePath)
Interchange
from a file system.
elementType
- elementName
- filePath
- the full path of the file to read
Interchange
data structure
that contains the EDI data mapped to a tree structure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |