public class UNEdifactInterchangeParser extends Object implements XMLReader, org.milyn.namespace.NamespaceDeclarationStackAware, org.milyn.xml.hierarchy.HierarchyChangeReader
| Modifier and Type | Field and Description |
|---|---|
static Delimiters |
defaultUNEdifactDelimiters |
protected MappingsRegistry |
registry
By default we are using
LazyMappingsRegistry instance |
| Constructor and Description |
|---|
UNEdifactInterchangeParser() |
| Modifier and Type | Method and Description |
|---|---|
protected InterchangeContext |
createInterchangeContext(BufferedSegmentReader segmentReader,
boolean validate,
ControlBlockHandlerFactory controlBlockHandlerFactory,
org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack) |
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Map<String,Boolean> |
getFeatures() |
InterchangeContext |
getInterchangeContext() |
Object |
getProperty(String name) |
void |
ignoreEmptyNodes(boolean ignoreEmptyNodes) |
void |
ignoreNewLines(boolean ignoreNewLines) |
void |
parse(InputSource unedifactInterchange) |
void |
parse(String systemId)
The following methods are currently unimplemnted...
|
void |
setContentHandler(ContentHandler contentHandler) |
void |
setDTDHandler(DTDHandler arg0) |
void |
setEntityResolver(EntityResolver arg0) |
void |
setErrorHandler(ErrorHandler arg0) |
void |
setFeature(String name,
boolean value) |
void |
setHierarchyChangeListener(org.milyn.xml.hierarchy.HierarchyChangeListener listener) |
UNEdifactInterchangeParser |
setMappingsRegistry(MappingsRegistry registry)
Set the EDI mapping model to be used in all subsequent parse operations.
|
void |
setNamespaceDeclarationStack(org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack) |
void |
setProperty(String name,
Object value) |
void |
validate(boolean validate) |
public static final Delimiters defaultUNEdifactDelimiters
protected MappingsRegistry registry
LazyMappingsRegistry instancepublic void parse(InputSource unedifactInterchange) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionprotected InterchangeContext createInterchangeContext(BufferedSegmentReader segmentReader, boolean validate, ControlBlockHandlerFactory controlBlockHandlerFactory, org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack)
public InterchangeContext getInterchangeContext()
public UNEdifactInterchangeParser setMappingsRegistry(MappingsRegistry registry)
EDIParser.registry - The mapping model registry.public ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setContentHandler(ContentHandler contentHandler)
setContentHandler in interface XMLReaderpublic void ignoreNewLines(boolean ignoreNewLines)
public void ignoreEmptyNodes(boolean ignoreEmptyNodes)
public void validate(boolean validate)
public void setFeature(String name, boolean value)
setFeature in interface XMLReaderpublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setNamespaceDeclarationStack(org.milyn.namespace.NamespaceDeclarationStack namespaceDeclarationStack)
setNamespaceDeclarationStack in interface org.milyn.namespace.NamespaceDeclarationStackAwarepublic void setHierarchyChangeListener(org.milyn.xml.hierarchy.HierarchyChangeListener listener)
setHierarchyChangeListener in interface org.milyn.xml.hierarchy.HierarchyChangeReaderpublic void parse(String systemId) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic void setDTDHandler(DTDHandler arg0)
setDTDHandler in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setEntityResolver(EntityResolver arg0)
setEntityResolver in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler arg0)
setErrorHandler in interface XMLReaderpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionCopyright © 2016. All rights reserved.