org.milyn.edisax.unedifact
Class UNEdifactInterchangeParser
java.lang.Object
org.milyn.edisax.unedifact.UNEdifactInterchangeParser
- All Implemented Interfaces:
- org.milyn.namespace.NamespaceDeclarationStackAware, org.milyn.xml.hierarchy.HierarchyChangeReader, XMLReader
public class UNEdifactInterchangeParser
- extends Object
- implements XMLReader, org.milyn.namespace.NamespaceDeclarationStackAware, org.milyn.xml.hierarchy.HierarchyChangeReader
UN/EDIFACT Interchange Envelope parser.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultUNEdifactDelimiters
public static final Delimiters defaultUNEdifactDelimiters
registry
protected MappingsRegistry registry
- By default we are using
LazyMappingsRegistry instance
UNEdifactInterchangeParser
public UNEdifactInterchangeParser()
parse
public void parse(InputSource unedifactInterchange)
throws IOException,
SAXException
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
createInterchangeContext
protected InterchangeContext createInterchangeContext(BufferedSegmentReader segmentReader,
boolean validate,
ControlBlockHandlerFactory controlBlockHandlerFactory,
org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack)
getInterchangeContext
public InterchangeContext getInterchangeContext()
setMappingsRegistry
public UNEdifactInterchangeParser setMappingsRegistry(MappingsRegistry registry)
- Set the EDI mapping model to be used in all subsequent parse operations.
The model can be generated through a call to the
EDIParser.
- Parameters:
registry - The mapping model registry.
- Returns:
- This parser instance.
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler in interface XMLReader
setContentHandler
public void setContentHandler(ContentHandler contentHandler)
- Specified by:
setContentHandler in interface XMLReader
ignoreNewLines
public void ignoreNewLines(boolean ignoreNewLines)
ignoreEmptyNodes
public void ignoreEmptyNodes(boolean ignoreEmptyNodes)
validate
public void validate(boolean validate)
getFeatures
public Map<String,Boolean> getFeatures()
setFeature
public void setFeature(String name,
boolean value)
- Specified by:
setFeature in interface XMLReader
getFeature
public boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getFeature in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setNamespaceDeclarationStack
public void setNamespaceDeclarationStack(org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack)
- Specified by:
setNamespaceDeclarationStack in interface org.milyn.namespace.NamespaceDeclarationStackAware
setHierarchyChangeListener
public void setHierarchyChangeListener(org.milyn.xml.hierarchy.HierarchyChangeListener listener)
- Specified by:
setHierarchyChangeListener in interface org.milyn.xml.hierarchy.HierarchyChangeReader
parse
public void parse(String systemId)
throws IOException,
SAXException
- The following methods are currently unimplemnted...
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler in interface XMLReader
setDTDHandler
public void setDTDHandler(DTDHandler arg0)
- Specified by:
setDTDHandler in interface XMLReader
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver in interface XMLReader
setEntityResolver
public void setEntityResolver(EntityResolver arg0)
- Specified by:
setEntityResolver in interface XMLReader
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler in interface XMLReader
setErrorHandler
public void setErrorHandler(ErrorHandler arg0)
- Specified by:
setErrorHandler in interface XMLReader
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2018. All rights reserved.