public class EDIReader extends EDIParser implements SmooksXMLReader
EDIParser
into the Smooks framework.
This adds EDI processing support to Smooks.
<edi:reader mappingModel="edi-to-xml-order-mapping.xml" validate="false"/>
Modifier and Type | Field and Description |
---|---|
static String |
MODEL_CONFIG_KEY
Model resource configuration key.
|
FEATURE_IGNORE_EMPTY_NODES, FEATURE_IGNORE_NEWLINES, FEATURE_VALIDATE
Constructor and Description |
---|
EDIReader() |
Modifier and Type | Method and Description |
---|---|
protected static Hashtable |
getMappingTable(ApplicationContext context)
Get the mapping model table from the context.
|
void |
parse(InputSource ediSource)
Parse the EDI message.
|
void |
setExecutionContext(ExecutionContext executionContext)
Set the Smooks
ExecutionContext on the implementing class. |
endElement, endElement, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getFeatures, getIndentDepth, getProperty, mapFields, parse, parse, parseMappingModel, parseMappingModel, parseMappingModel, parseMappingModel, parseMappingModel, setBufferedSegmentReader, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setIndentDepth, setMappingModel, setNamespaceDeclarationStack, setProperty, startElement, startElement, startElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
public static final String MODEL_CONFIG_KEY
public void setExecutionContext(ExecutionContext executionContext)
SmooksXMLReader
ExecutionContext
on the implementing class.setExecutionContext
in interface SmooksXMLReader
executionContext
- The Smooks ExecutionContext
.public void parse(InputSource ediSource) throws IOException, SAXException
parse
in interface XMLReader
parse
in class EDIParser
IOException
SAXException
protected static Hashtable getMappingTable(ApplicationContext context)
context
- The context from which to extract the mapping table.Copyright © 2020. All rights reserved.