public class InterchangeContext extends Object
Modifier and Type | Field and Description |
---|---|
MutableInt |
indentDepth |
static String |
INTERCHANGE_MESSAGE_BLOCK_ELEMENT_NAME |
Constructor and Description |
---|
InterchangeContext(BufferedSegmentReader segmentReader,
MappingsRegistry registry,
ContentHandler contentHandler,
Map<String,Boolean> parserFeatures,
ControlBlockHandlerFactory controlBlockHandlerFactory,
NamespaceDeclarationStack namespaceDeclarationStack,
boolean validate)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler() |
ControlBlockHandler |
getControlBlockHandler(String segCode) |
EDIParser |
getControlSegmentParser() |
String |
getNamespace() |
NamespaceDeclarationStack |
getNamespaceDeclarationStack() |
MappingsRegistry |
getRegistry()
Returns an instance of
MappingsRegistry |
BufferedSegmentReader |
getSegmentReader() |
boolean |
isContainerManagedNamespaceStack() |
boolean |
isValidate() |
void |
mapControlSegment(Segment controlSegment,
boolean clearSegmentBuffer) |
EDIParser |
newParser(EdifactModel mappingModel) |
void |
popDelimiters() |
void |
pushDelimiters(Delimiters delimiters) |
public static final String INTERCHANGE_MESSAGE_BLOCK_ELEMENT_NAME
public MutableInt indentDepth
public InterchangeContext(BufferedSegmentReader segmentReader, MappingsRegistry registry, ContentHandler contentHandler, Map<String,Boolean> parserFeatures, ControlBlockHandlerFactory controlBlockHandlerFactory, NamespaceDeclarationStack namespaceDeclarationStack, boolean validate)
segmentReader
- The interchange BufferedSegmentReader
instance.registry
- The Mapping Models
registry.contentHandler
- The content handler
instance to receive the interchange events.parserFeatures
- Parser features.controlBlockHandlerFactory
- Control Block Handler Factory.validate
- Validate the data types of the EDI message data as defined in the mapping model.public ControlBlockHandler getControlBlockHandler(String segCode) throws SAXException
SAXException
public BufferedSegmentReader getSegmentReader()
public ContentHandler getContentHandler()
public boolean isValidate()
public String getNamespace()
public NamespaceDeclarationStack getNamespaceDeclarationStack()
public EDIParser newParser(EdifactModel mappingModel)
public EDIParser getControlSegmentParser()
public void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer) throws SAXException
SAXException
public void pushDelimiters(Delimiters delimiters)
public void popDelimiters()
public MappingsRegistry getRegistry()
MappingsRegistry
public boolean isContainerManagedNamespaceStack()
Copyright © 2020. All rights reserved.