org.milyn.smooks.edi
Class EDIReader
java.lang.Object
org.milyn.edisax.EDIParser
org.milyn.smooks.edi.EDIReader
- All Implemented Interfaces:
- ContentHandler, SmooksXMLReader, XMLReader
public class EDIReader
- extends EDIParser
- implements SmooksXMLReader
Smooks EDI Reader.
Hooks the Milyn EDIParser into the Smooks framework.
This adds EDI processing support to Smooks.
Configuration
<edi:reader mappingModel="edi-to-xml-order-mapping.xml" validate="false"/>
- Author:
- tfennelly
| Methods inherited from class org.milyn.edisax.EDIParser |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.XMLReader |
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty |
MODEL_CONFIG_KEY
public static final String MODEL_CONFIG_KEY
- Model resource configuration key.
- See Also:
- Constant Field Values
EDIReader
public EDIReader()
setExecutionContext
public void setExecutionContext(ExecutionContext executionContext)
- Specified by:
setExecutionContext in interface SmooksXMLReader
parse
public void parse(InputSource ediSource)
throws IOException,
SAXException
- Parse the EDI message.
Overridden so as to set the EDI to XML mapping model on the parser.
- Specified by:
parse in interface XMLReader- Overrides:
parse in class EDIParser
- Throws:
IOException
SAXException
getMappingTable
protected static Hashtable getMappingTable(ApplicationContext context)
- Get the mapping model table from the context.
- Parameters:
context - The context from which to extract the mapping table.
- Returns:
- The mapping model talbe.
Copyright © 2014. All Rights Reserved.