public class EdiConvertionTool extends Object
EdiSpecificationReader
and generates
a Smooks EDI Mapping Model archive that can be written to a zip file or folder.Constructor and Description |
---|
EdiConvertionTool() |
Modifier and Type | Method and Description |
---|---|
static void |
fromSpec(EdiSpecificationReader ediSpecificationReader,
File modelSetOutFolder,
String urn)
Write an EDI Mapping Model configuration set from the specified EDI Specification Reader.
|
static void |
fromSpec(EdiSpecificationReader ediSpecificationReader,
ZipOutputStream modelSetOutStream,
String urn)
Write an EDI Mapping Model configuration set from the specified EDI Specification Reader.
|
static Archive |
fromUnEdifactSpec(File specification,
String urn)
Write an EDI Mapping Model configuration set from a UN/EDIFACT
specification.
|
static Archive |
fromUnEdifactSpec(File specification,
String urn,
String... messages)
Write an EDI Mapping Model configuration set from a UN/EDIFACT
specification.
|
static void |
fromUnEdifactSpec(ZipInputStream specification,
File modelSetOutFolder,
String urn,
boolean useShortName)
Write an EDI Mapping Model configuration set from a UN/EDIFACT
specification.
|
static void |
fromUnEdifactSpec(ZipInputStream specification,
ZipOutputStream modelSetOutStream,
String urn,
boolean useShortName)
Write an EDI Mapping Model configuration set from a UN/EDIFACT
specification.
|
static void |
removeDuplicateSegments(SegmentGroup segmentGroup) |
public static void fromUnEdifactSpec(ZipInputStream specification, ZipOutputStream modelSetOutStream, String urn, boolean useShortName) throws IOException
specification
- The UN/EDIFACT specification zip file.modelSetOutStream
- The output zip stream for the generated EDI Mapping Model configuration set.urn
- The URN for the EDI Mapping model configuration set.IOException
- Error writing Mapping Model configuration set.public static Archive fromUnEdifactSpec(File specification, String urn) throws IOException
specification
- The UN/EDIFACT specification zip file.urn
- The URN for the EDI Mapping model configuration set.IOException
- Error writing Mapping Model configuration set.public static Archive fromUnEdifactSpec(File specification, String urn, String... messages) throws IOException
specification
- The UN/EDIFACT specification zip file.urn
- The URN for the EDI Mapping model configuration set.messages
- The messages to be included in the generated Archive.IOException
- Error writing Mapping Model configuration set.public static void fromSpec(EdiSpecificationReader ediSpecificationReader, ZipOutputStream modelSetOutStream, String urn) throws IOException
ediSpecificationReader
- The configuration reader for the EDI interchange configuration set.modelSetOutStream
- The EDI Mapping Model output Stream.urn
- The URN for the EDI Mapping model configuration set.IOException
- Error writing Mapping Model configuration set.public static void fromUnEdifactSpec(ZipInputStream specification, File modelSetOutFolder, String urn, boolean useShortName) throws IOException
specification
- The UN/EDIFACT specification zip file.modelSetOutFolder
- The output folder for the generated EDI Mapping Model configuration set.urn
- The URN for the EDI Mapping model configuration set.IOException
- Error writing Mapping Model configuration set.public static void fromSpec(EdiSpecificationReader ediSpecificationReader, File modelSetOutFolder, String urn) throws IOException
ediSpecificationReader
- The configuration reader for the EDI interchange configuration set.modelSetOutFolder
- The output folder for the generated EDI Mapping Model configuration set.urn
- The URN for the EDI Mapping model configuration set.IOException
- Error writing Mapping Model configuration set.public static void removeDuplicateSegments(SegmentGroup segmentGroup)
Copyright © 2020. All rights reserved.