|
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.samples.SampleX12DocumentHandler
class to parse input string for all defined OBOE Transaction Sets
program will create Valid XML formatted data for each transaction set
output sent to System.out (console)
x12 dependent
| Constructor Summary | |
SampleX12DocumentHandler()
do nothing constructor |
|
| Method Summary | |
void |
endEnvelope(Envelope inEnv)
do nothing when an envelope is ended |
void |
endFunctionalGroup(FunctionalGroup inFG)
do nothing when an fg is ended |
void |
endSegment(Segment inSeg)
do nothing when an seg is ended Note that these segments are only envelope and fg segments NOT SEGMENTS inside of Transaction Sets |
void |
endTransactionSet(TransactionSet inTS)
create a Valid XML document for each ts found |
DocumentErrors |
getDocumentErrors()
|
static void |
main(java.lang.String[] args)
from command line java com.americancoders.samples.SampleX12DocumentHandler xxxx, where xxxx is a X12 document filename output sent to System.out error message also sent to System.out |
void |
parse(java.lang.String file)
|
void |
startEnvelope(Envelope inEnv)
do nothing when an envelope is started |
void |
startFunctionalGroup(FunctionalGroup inFG)
called when an FunctionalGroup object is created |
void |
startParsing(java.io.Reader inRDR)
start parsing not used here |
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 SampleX12DocumentHandler()
| Method Detail |
public void startParsing(java.io.Reader inRDR)
startParsing in interface EDIDocumentHandlerinRDR - the edi document in a java io Reader objectpublic 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 void parse(java.lang.String file)
public DocumentErrors getDocumentErrors()
getDocumentErrors in interface EDIDocumentHandlerpublic static void main(java.lang.String[] args)
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||