|
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.util.OBOECodeGenerator
OBOE - Open Business Objects for EDI
Copyright 1998-2007 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com
use this application to generate a program that uses a parsed OBOE object or create an OBOE object.
The application reads in a rules file to generate the code.
A lot of code is generated but not enough to be completely useful.
You will have to remove code for segments and data elements you don't use and
add code for logic that is specific to your system requirements.
format: java com.americancoders.OBOECodeGenerator pJ|pP|bJ|bP envelope tsid [-useName] [outputFileName]
where pJ generates a Java program that parses an EDI document
or pP generates a PIXES process that parses an EDI document
or bJ generates a Java program that builds an EDI document
or bP generates a PIXES process that builds an EDI document.
and envelope is the envelope xml file to use
and tsid is the transactionset id to build
and optional -useName indicates that method names should be defined by the objects name
attribute and not its id attribute.
and optional outputFileName is any valid file name to where results are stored.
If the file name ends with .java the program will create the class name from the file name
otherwise it will generate the class name from the type of build and the transaction set id.
| Constructor Summary | |
OBOECodeGenerator(java.lang.String inEnvelope,
TransactionSet inTS,
java.lang.String type,
boolean inUseName,
java.lang.String outputFileName)
constructor accepts 5 arguments |
|
| Method Summary | |
java.lang.String |
addDepth(int count)
|
void |
doJava(TemplateEnvelope inEnv,
TransactionSet inTS,
java.lang.String type,
boolean inUseName,
java.lang.String inPgmName)
|
void |
doParseForJava(TransactionSet inTS)
when parsing an OBOE object this code generates the code to work with Envelopes, Functional Groups and Transaction Sets |
void |
doPIXES(TemplateEnvelope inEnv,
TransactionSet inTS,
java.lang.String type,
boolean inUseName)
|
static void |
main(java.lang.String[] args)
to make this a java application the class needs a main method. |
java.lang.String |
whatMethodName(java.lang.String parent,
java.lang.String mine)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OBOECodeGenerator(java.lang.String inEnvelope,
TransactionSet inTS,
java.lang.String type,
boolean inUseName,
java.lang.String outputFileName)
inEnvelope - xml file nameinTS - -
transaction set id to usetype - "pJ", "pP", "bJ" or "bP"; pJ - Java parsing program; pP -
PIXES parsing process; bJ - Java building program; bP - PIXES
building processinUseName - -
boolean to indicate if object names are usedoutputFileName - -
write resultant code to this filename, if null then send to
System.out If filename ends with .java then creates the
classname from the filename otherwise uses type and tsid
fields.| Method Detail |
public static void main(java.lang.String[] args)
public void doJava(TemplateEnvelope inEnv,
TransactionSet inTS,
java.lang.String type,
boolean inUseName,
java.lang.String inPgmName)
throws java.lang.Exception
java.lang.Exceptionpublic void doParseForJava(TransactionSet inTS)
inTS - TransactionSet
public java.lang.String whatMethodName(java.lang.String parent,
java.lang.String mine)
public void doPIXES(TemplateEnvelope inEnv,
TransactionSet inTS,
java.lang.String type,
boolean inUseName)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String addDepth(int count)
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||