|
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.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(com.americancoders.edi.Envelope inEnv)
do nothing when an envelope is ended |
void |
endFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
do nothing when an fg is ended |
void |
endSegment(com.americancoders.edi.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(com.americancoders.edi.TransactionSet inTS)
create a Valid XML document for each ts found |
com.americancoders.edi.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(com.americancoders.edi.Envelope inEnv)
do nothing when an envelope is started |
void |
startFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
called when an FunctionalGroup object is created |
void |
startParsing(java.io.Reader inRDR)
start parsing not used here |
void |
startSegment(com.americancoders.edi.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(com.americancoders.edi.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(com.americancoders.edi.Envelope inEnv)
startEnvelope in interface EDIDocumentHandlerinEnv - Envelope foundpublic void startFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
startFunctionalGroup in interface EDIDocumentHandlerinFG - FunctionalGroup foundpublic void startTransactionSet(com.americancoders.edi.TransactionSet inTS)
startTransactionSet in interface EDIDocumentHandlerinTS - TransactionSet foundpublic void startSegment(com.americancoders.edi.Segment inSeg)
startSegment in interface EDIDocumentHandlerinSeg - Segment foundpublic void endEnvelope(com.americancoders.edi.Envelope inEnv)
endEnvelope in interface EDIDocumentHandlerinEnv - envelope foundpublic void endFunctionalGroup(com.americancoders.edi.FunctionalGroup inFG)
endFunctionalGroup in interface EDIDocumentHandlerinFG - FunctionalGroup foundpublic void endTransactionSet(com.americancoders.edi.TransactionSet inTS)
endTransactionSet in interface EDIDocumentHandlerinTS - TransactionSet foundpublic void endSegment(com.americancoders.edi.Segment inSeg)
endSegment in interface EDIDocumentHandlerinSeg - Segment foundpublic void parse(java.lang.String file)
public com.americancoders.edi.DocumentErrors getDocumentErrors()
getDocumentErrors in interface EDIDocumentHandlerpublic static void main(java.lang.String[] args)
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||