|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.americancoders.edi.EDIFact.EDIFactDocumentHandler
class to parse input string for all defined OBOE Transaction Sets
EDIFact dependent
| Constructor Summary | |
EDIFactDocumentHandler()
create a parser for transaction set and parser what is coming from Reader object |
|
EDIFactDocumentHandler(java.io.Reader inReader)
create a parser for transaction set and parser what is coming from Reader object if you use this constructor and there are document errors the method will not make the envelope object available |
|
EDIFactDocumentHandler(java.lang.String inString)
create a parser for transaction set and parser what is coming from Reader object if you use this constructor and there are document errors the method will not make the envelope object available |
|
| Method Summary | |
void |
endEnvelope(Envelope inEnv)
called when an Evelope is finished |
void |
endFunctionalGroup(FunctionalGroup inFG)
called when an FunctionalGroup object is finished |
void |
endSegment(Segment inSeg)
called when an Segment object is finished only called for segments at the Envelope and functionalGroup level does not get called for segments within TransactionSet |
void |
endTransactionSet(TransactionSet inTS)
called when an TransactionSet object is finished |
DocumentErrors |
getDocumentErrors()
|
Envelope |
getEnvelope()
returns the envelope that was parsed |
EDIFactDocumentParser |
getParser()
|
static void |
main(java.lang.String[] args)
main method used for testing purposes format: java filetoparse writes valid xml format of file to System.out |
void |
startEnvelope(Envelope inEnv)
called when an Envelope object is created |
void |
startFunctionalGroup(FunctionalGroup inFG)
called when an FunctionalGroup object is created |
void |
startParsing(java.io.Reader inReader)
starts the parser with the passed Reader object |
void |
startSegment(Segment inSeg)
called when an Segment object is created only called for segments at the Envelope and functionalGroup level does not get called for segments within TransactionSet |
void |
startTransactionSet(TransactionSet inTS)
called when an TransactionSet object is created |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EDIFactDocumentHandler()
public EDIFactDocumentHandler(java.io.Reader inReader)
throws OBOEException
inReader - the edi document in a java io reader object
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE
- parsing errors
public EDIFactDocumentHandler(java.lang.String inString)
throws OBOEException
inString - file name of the edi document
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE
- parsing erros| Method Detail |
public void startParsing(java.io.Reader inReader)
throws OBOEException
startParsing in interface EDIDocumentHandlerinReader - the edi document in a java io reader object
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE
- parsing errospublic void startEnvelope(Envelope inEnv)
startEnvelope in interface EDIDocumentHandlerinEnv - Envelope foundpublic void startFunctionalGroup(FunctionalGroup inFG)
startFunctionalGroup in interface EDIDocumentHandlerinFG - FunctionalGroup foundpublic void startTransactionSet(TransactionSet inTS)
startTransactionSet in interface EDIDocumentHandlerinTS - TransactionSet foundpublic void startSegment(Segment inSeg)
startSegment in interface EDIDocumentHandlerinSeg - Segment foundpublic void endEnvelope(Envelope inEnv)
endEnvelope in interface EDIDocumentHandlerinEnv - envelope foundpublic void endFunctionalGroup(FunctionalGroup inFG)
endFunctionalGroup in interface EDIDocumentHandlerinFG - FunctionalGroup foundpublic void endTransactionSet(TransactionSet inTS)
endTransactionSet in interface EDIDocumentHandlerinTS - TransactionSet foundpublic void endSegment(Segment inSeg)
endSegment in interface EDIDocumentHandlerinSeg - Segment foundpublic Envelope getEnvelope()
public static void main(java.lang.String[] args)
args - String array - only one arg accepted - file to parsepublic DocumentErrors getDocumentErrors()
getDocumentErrors in interface EDIDocumentHandlerpublic EDIFactDocumentParser getParser()
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||