org.milyn.edisax.interchange
Class InterchangeContext

java.lang.Object
  extended by org.milyn.edisax.interchange.InterchangeContext

public class InterchangeContext
extends java.lang.Object

EDI message interchange context object.

Author:
tom.fennelly@gmail.com

Field Summary
 MutableInt indentDepth
           
static java.lang.String INTERCHANGE_MESSAGE_BLOCK_ELEMENT_NAME
           
 
Constructor Summary
InterchangeContext(BufferedSegmentReader segmentReader, java.util.Map<Description,EdifactModel> mappingModels, org.xml.sax.ContentHandler contentHandler, ControlBlockHandlerFactory controlBlockHandlerFactory, boolean validate)
          Public constructor.
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
           
 ControlBlockHandler getControlBlockHandler(java.lang.String segCode)
           
 EDIParser getControlSegmentParser()
           
 java.util.Map<Description,EdifactModel> getMappingModels()
           
 BufferedSegmentReader getSegmentReader()
           
 boolean isValidate()
           
 void mapControlSegment(Segment controlSegment, boolean clearSegmentBuffer)
           
 EDIParser newParser(EdifactModel mappingModel)
           
 void popDelimiters()
           
 void pushDelimiters(Delimiters delimiters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERCHANGE_MESSAGE_BLOCK_ELEMENT_NAME

public static final java.lang.String INTERCHANGE_MESSAGE_BLOCK_ELEMENT_NAME
See Also:
Constant Field Values

indentDepth

public MutableInt indentDepth
Constructor Detail

InterchangeContext

public InterchangeContext(BufferedSegmentReader segmentReader,
                          java.util.Map<Description,EdifactModel> mappingModels,
                          org.xml.sax.ContentHandler contentHandler,
                          ControlBlockHandlerFactory controlBlockHandlerFactory,
                          boolean validate)
Public constructor.

Parameters:
segmentReader - The interchange BufferedSegmentReader instance.
mappingModels - The Mapping Models to be used for translating the interchange.
contentHandler - The content handler instance to receive the interchange events.
controlBlockHandlerFactory - Control Block Handler Factory.
validate - Validate the data types of the EDI message data as defined in the mapping model.
Method Detail

getControlBlockHandler

public ControlBlockHandler getControlBlockHandler(java.lang.String segCode)
                                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getSegmentReader

public BufferedSegmentReader getSegmentReader()

getMappingModels

public java.util.Map<Description,EdifactModel> getMappingModels()

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()

isValidate

public boolean isValidate()

newParser

public EDIParser newParser(EdifactModel mappingModel)

getControlSegmentParser

public EDIParser getControlSegmentParser()

mapControlSegment

public void mapControlSegment(Segment controlSegment,
                              boolean clearSegmentBuffer)
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

pushDelimiters

public void pushDelimiters(Delimiters delimiters)

popDelimiters

public void popDelimiters()


Copyright © 2011. All Rights Reserved.