|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.americancoders.edi.EDIDocumentParser
abstract class defining methods for parsing EDI Documents
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 | |
protected com.americancoders.edi.DocumentErrors |
dErr
|
| Constructor Summary | |
EDIDocumentParser()
|
|
| Method Summary | |
void |
deregisterHandler(com.americancoders.edi.EDIDocumentHandler edh)
method for handlers to deregister from the parser |
com.americancoders.edi.DocumentErrors |
getDocumentErrors()
gets the DocumentErrors object |
void |
notifyEndEnvelope(com.americancoders.edi.Envelope inEnv)
method to notifiy handlers when processing of an envelope is complete |
void |
notifyEndFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
method to notifiy handlers when processing of a functional group is complete |
void |
notifyEndSegment(com.americancoders.edi.Segment inSeg)
method to notifiy handlers when processing of an Segment is complete |
void |
notifyEndTransactionSet(com.americancoders.edi.TransactionSet inTS)
method to notifiy handlers when processing of an TransactionSet is complete |
void |
notifyStartEnvelope(com.americancoders.edi.Envelope inEnv)
method to notifiy handlers when an envelope was just created |
void |
notifyStartFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
method to notifiy handlers when an FunctionalGroup was just created |
void |
notifyStartSegment(com.americancoders.edi.Segment inSeg)
method to notifiy handlers when an Segment was just created |
void |
notifyStartTransactionSet(com.americancoders.edi.TransactionSet inTS)
method to notifiy handlers when an TransactionSet was just created |
abstract void |
parseDocument(java.io.Reader r,
boolean b)
abstract method all document parsers must implement |
abstract void |
parseDocument(java.lang.String s)
abstract method all document parsers must implement |
void |
registerHandler(com.americancoders.edi.EDIDocumentHandler edh)
method for handlers to register with the parser |
void |
setErrorLevel(int i)
method to reset the error level processing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.americancoders.edi.DocumentErrors dErr
| Constructor Detail |
public EDIDocumentParser()
| Method Detail |
public void setErrorLevel(int i)
i - intpublic void registerHandler(com.americancoders.edi.EDIDocumentHandler edh)
edh - EDIDocumentHandler
public abstract void parseDocument(java.lang.String s)
throws OBOEException
s - String edi document
OBOEException
public abstract void parseDocument(java.io.Reader r,
boolean b)
throws OBOEException
r - java.io.Reader object containing edi documentb - boolean if true run validation routine after parsing.
OBOEExceptionpublic void notifyStartEnvelope(com.americancoders.edi.Envelope inEnv)
inEnv - Envelopepublic void notifyStartFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
inFG - FunctionalGrouppublic void notifyStartTransactionSet(com.americancoders.edi.TransactionSet inTS)
inTS - TransactionSetpublic void notifyStartSegment(com.americancoders.edi.Segment inSeg)
inSeg - Segmentpublic void notifyEndEnvelope(com.americancoders.edi.Envelope inEnv)
inEnv - Envelopepublic void notifyEndFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
inFG - FunctionalGrouppublic void notifyEndTransactionSet(com.americancoders.edi.TransactionSet inTS)
inTS - TransactionSetpublic void notifyEndSegment(com.americancoders.edi.Segment inSeg)
inSeg - Segmentpublic void deregisterHandler(com.americancoders.edi.EDIDocumentHandler edh)
edh - EDIDocumentHandlerpublic com.americancoders.edi.DocumentErrors getDocumentErrors()
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||