org.jfree.xml.generator

Class DescriptionGenerator

public final class DescriptionGenerator extends Object

A utility application for generating class descriptions.
Method Summary
static DescriptionModelgenerate(String source, Properties configuration, DescriptionModel model)
Generates a DescriptionModel from the specified source.
static voidmain(String[] args)
Runs the generator, using the 'generator.properties' file for configuration info.
static voidwriteMultiFile(String target, DescriptionModel model)
Writes the class description model to multiple files.
static voidwriteSingleFile(String target, DescriptionModel model)
Writes the class description model to a single file.

Method Detail

generate

public static DescriptionModel generate(String source, Properties configuration, DescriptionModel model)
Generates a DescriptionModel from the specified source.

Parameters: source the source directory. configuration the configuration properties. model the model (null permitted).

Returns: A class description model.

main

public static void main(String[] args)
Runs the generator, using the 'generator.properties' file for configuration info.

Parameters: args command line arguments.

Throws: Exception if something goes wrong!

writeMultiFile

public static void writeMultiFile(String target, DescriptionModel model)
Writes the class description model to multiple files.

Parameters: target the target file name. model the class description model.

Throws: IOException if there is an I/O problem.

writeSingleFile

public static void writeSingleFile(String target, DescriptionModel model)
Writes the class description model to a single file.

Parameters: target the target file name. model the class description model.

Throws: IOException if there is an I/O problem.