toolbox.beangen
Class BeanGenerator

Package class diagram package BeanGenerator
java.lang.Object
  extended by toolbox.beangen.BeanGenerator

public class BeanGenerator
extends java.lang.Object

Utility class to generate Java Beans based on a FreeMarker Template and XML Bean Definitions.


Constructor Summary
BeanGenerator(java.lang.String templateDir, java.lang.String templateName, java.lang.String outDir, java.lang.String ext)
          Construct a new BeanGenerator
 
Method Summary
static void main(java.lang.String[] args)
          Application starting point.
static void usage(java.lang.String msg)
          Print usage message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanGenerator

public BeanGenerator(java.lang.String templateDir,
                     java.lang.String templateName,
                     java.lang.String outDir,
                     java.lang.String ext)
              throws BeanException
Construct a new BeanGenerator

Parameters:
templateDir - Template loading directory.
templateName - Template to use when generating beans.
outDir - Output directory.
ext - File extension to use.
Throws:
BeanException
Method Detail

usage

public static void usage(java.lang.String msg)
Print usage message.

Parameters:
msg - Error message.

main

public static void main(java.lang.String[] args)
Application starting point.

Parameters:
args - Command line arguments.