|
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.X12DocumentHandlerXMLBuilder
class to parse input string for all defined OBOE Transaction Sets
x12 dependent
| Constructor Summary | |
X12DocumentHandlerXMLBuilder(java.io.FileWriter inFW)
create a parser for transaction set and parser what is coming from Reader object |
|
X12DocumentHandlerXMLBuilder(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 |
|
| 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()
|
static void |
main(java.lang.String[] args)
main to test in application mode |
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 X12DocumentHandlerXMLBuilder(java.io.FileWriter inFW)
public X12DocumentHandlerXMLBuilder(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 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 DocumentErrors getDocumentErrors()
getDocumentErrors in interface EDIDocumentHandler
public static void main(java.lang.String[] args)
throws java.io.IOException
args - String[] - uses 2 arguments, input file name and output file name
input file must contain an x12 edi document, output file will be valid xml oboe format
java.io.IOException
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||