org.milyn.edisax.model
Class EdifactModel

java.lang.Object
  extended by org.milyn.edisax.model.EdifactModel

public class EdifactModel
extends Object

EdifactModel contains all logic for handling imports for the edi-message-mapping model.


Constructor Summary
EdifactModel()
           
 
Method Summary
 Delimiters getDelimiters()
          Returns the delimiters used in edifact format.
 Edimap getEdimap()
          Returns the edimap containing the parser logic.
 void parseSequence(InputStream inputStream)
          Parse the edifact edimap specified in the edi-message-mapping.
 void setEdimap(Edimap edimap)
          Sets the edimap containing the parser logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdifactModel

public EdifactModel()
Method Detail

getEdimap

public Edimap getEdimap()
Returns the edimap containing the parser logic.

Returns:
edi-message-mapping.

setEdimap

public void setEdimap(Edimap edimap)
Sets the edimap containing the parser logic.

Parameters:
edimap - the edi-message-mapping

getDelimiters

public Delimiters getDelimiters()
Returns the delimiters used in edifact format.

Returns:
delimiters.

parseSequence

public void parseSequence(InputStream inputStream)
                   throws SAXException,
                          EDIConfigurationException,
                          IOException
Parse the edifact edimap specified in the edi-message-mapping.

Parameters:
inputStream - the edi-message-mapping.
Throws:
EDIParseException - is thrown when EdifactModel is unable to initialize edimap.
EDIConfigurationException - is thrown when edi-message-mapping contains multiple or no namespace declaration.
IOException - is thrown when error occurs when parsing edi-message-mapping.
SAXException


Copyright © 2008. All Rights Reserved.