Open Business Objects for EDI
v3.6.0

com.americancoders.util
Class OBOECodeGenerator

java.lang.Object
  |
  +--com.americancoders.util.OBOECodeGenerator

public class OBOECodeGenerator
extends java.lang.Object

OBOE - Open Business Objects for EDI

Copyright 1998-2009 - 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.
 

Copyright 2000-2009 - American Coders, Ltd Raleigh NC USA
All rights reserved

Version:
3.6.0
Author:
Joe McVerry - American Coders, Ltd.

Constructor Summary
OBOECodeGenerator(java.lang.String inEnvelope, com.americancoders.edi.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(com.americancoders.edi.TemplateEnvelope inEnv, com.americancoders.edi.TransactionSet inTS, java.lang.String type, boolean inUseName, java.lang.String inPgmName)
           
 void doParseForJava(com.americancoders.edi.TransactionSet inTS)
          when parsing an OBOE object this code generates the code to work with Envelopes, Functional Groups and Transaction Sets
 void doPIXES(com.americancoders.edi.TemplateEnvelope inEnv, com.americancoders.edi.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

OBOECodeGenerator

public OBOECodeGenerator(java.lang.String inEnvelope,
                         com.americancoders.edi.TransactionSet inTS,
                         java.lang.String type,
                         boolean inUseName,
                         java.lang.String outputFileName)
constructor
accepts 5 arguments

Parameters:
inEnvelope - xml file name
inTS - - transaction set id to use
type - "pJ", "pP", "bJ" or "bP"; pJ - Java parsing program; pP - PIXES parsing process; bJ - Java building program; bP - PIXES building process
inUseName - - boolean to indicate if object names are used
outputFileName - - 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

main

public static void main(java.lang.String[] args)
to make this a java application the class needs a main method.

doJava

public void doJava(com.americancoders.edi.TemplateEnvelope inEnv,
                   com.americancoders.edi.TransactionSet inTS,
                   java.lang.String type,
                   boolean inUseName,
                   java.lang.String inPgmName)
            throws java.lang.Exception
java.lang.Exception

doParseForJava

public void doParseForJava(com.americancoders.edi.TransactionSet inTS)
when parsing an OBOE object this code generates the code to work with Envelopes, Functional Groups and Transaction Sets

Parameters:
inTS - TransactionSet

whatMethodName

public java.lang.String whatMethodName(java.lang.String parent,
                                       java.lang.String mine)

doPIXES

public void doPIXES(com.americancoders.edi.TemplateEnvelope inEnv,
                    com.americancoders.edi.TransactionSet inTS,
                    java.lang.String type,
                    boolean inUseName)
             throws java.lang.Exception
java.lang.Exception

addDepth

public java.lang.String addDepth(int count)

Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.