Open Business Objects for EDI
v3.6.0

com.americancoders.edi.TRADACOMS
Class TradacomsDocumentParser

java.lang.Object
  |
  +--com.americancoders.edi.EDIDocumentParser
        |
        +--com.americancoders.edi.TRADACOMS.TradacomsDocumentParser

public class TradacomsDocumentParser
extends EDIDocumentParser

class defining methods for parsing EDI Documents
Tradacoms2 dependent
Document handlers will register with this class to be notified when specific edi objects are created or finished
Unlike the old parser these parsers will not contain the objects, the process of adding objects to owning parents (such as adding functional groups to an envelope) is left up to the document handler.


Field Summary
 
Fields inherited from class com.americancoders.edi.EDIDocumentParser
dErr
 
Constructor Summary
TradacomsDocumentParser()
          parses an Tradacoms Document and passes results to EDIDocumentHandlers
 
Method Summary
 void parseDocument(java.io.Reader inReader)
          Deprecated. use parseDocument(Reader, boolean)
 void parseDocument(java.io.Reader inReader, boolean inValidate)
          method that controls the parsing
 void parseDocument(java.lang.String inString)
          method that controls the parsing
 
Methods inherited from class com.americancoders.edi.EDIDocumentParser
deregisterHandler, getDocumentErrors, notifyEndEnvelope, notifyEndFunctionalGroup, notifyEndSegment, notifyEndTransactionSet, notifyStartEnvelope, notifyStartFunctionalGroup, notifyStartSegment, notifyStartTransactionSet, registerHandler, setErrorLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradacomsDocumentParser

public TradacomsDocumentParser()
parses an Tradacoms Document and passes results to EDIDocumentHandlers

Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE
Method Detail

parseDocument

public void parseDocument(java.lang.String inString)
                   throws OBOEException
method that controls the parsing

Specified by:
parseDocument in class EDIDocumentParser
Parameters:
inString - String edi document
Throws:
OBOEException - - most likely unknown segment

parseDocument

public void parseDocument(java.io.Reader inReader)
                   throws OBOEException
Deprecated. use parseDocument(Reader, boolean)

method that controls the parsing

Parameters:
inReader - object containing edi data
Throws:
OBOEException - - most likely unknown segment

parseDocument

public void parseDocument(java.io.Reader inReader,
                          boolean inValidate)
                   throws OBOEException
method that controls the parsing

Specified by:
parseDocument in class EDIDocumentParser
Parameters:
inReader - reader object containing edi data
inValidate - boolean - call validation logic on envelope if true
if false is used then don't forget to call the validation method on the envelope object pass it the documenterrors object created here and getable using the getDocumentErrors method.
Throws:
OBOEException - - most likely unknown segment

Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.