public class UNEdifactInterchangeParser extends Object implements XMLReader, NamespaceDeclarationStackAware, HierarchyChangeReader
Modifier and Type | Field and Description |
---|---|
static Delimiters |
defaultUNEdifactDelimiters |
protected MappingsRegistry |
registry
By default we are using
LazyMappingsRegistry instance |
Constructor and Description |
---|
UNEdifactInterchangeParser() |
public static final Delimiters defaultUNEdifactDelimiters
protected MappingsRegistry registry
LazyMappingsRegistry
instancepublic void parse(InputSource unedifactInterchange) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
protected InterchangeContext createInterchangeContext(BufferedSegmentReader segmentReader, boolean validate, ControlBlockHandlerFactory controlBlockHandlerFactory, NamespaceDeclarationStack namespaceDeclarationStack)
public InterchangeContext getInterchangeContext()
public UNEdifactInterchangeParser setMappingsRegistry(MappingsRegistry registry)
EDIParser
.registry
- The mapping model registry.public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setContentHandler(ContentHandler contentHandler)
setContentHandler
in interface XMLReader
public void ignoreNewLines(boolean ignoreNewLines)
public void ignoreEmptyNodes(boolean ignoreEmptyNodes)
public void validate(boolean validate)
public void setFeature(String name, boolean value)
setFeature
in interface XMLReader
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setNamespaceDeclarationStack(NamespaceDeclarationStack namespaceDeclarationStack)
NamespaceDeclarationStackAware
setNamespaceDeclarationStack
in interface NamespaceDeclarationStackAware
namespaceDeclarationStack
- Namespace Declaration Stack.public void setHierarchyChangeListener(HierarchyChangeListener listener)
HierarchyChangeReader
reader
hierarchy change listener.setHierarchyChangeListener
in interface HierarchyChangeReader
listener
- The listener.public void parse(String systemId) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public void setDTDHandler(DTDHandler arg0)
setDTDHandler
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setEntityResolver(EntityResolver arg0)
setEntityResolver
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler arg0)
setErrorHandler
in interface XMLReader
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2020. All rights reserved.