Package org.jfree.xml.generator
Class DescriptionGenerator
java.lang.Object
org.jfree.xml.generator.DescriptionGenerator
A utility application for generating class descriptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DescriptionModelgenerate(String source, Properties configuration, DescriptionModel model) Generates aDescriptionModelfrom the specified source.static voidRuns 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.
-
Constructor Details
-
DescriptionGenerator
public DescriptionGenerator()
-
-
Method Details
-
main
Runs the generator, using the 'generator.properties' file for configuration info.- Parameters:
args- command line arguments.- Throws:
Exception- if something goes wrong!
-
generate
public static DescriptionModel generate(String source, Properties configuration, DescriptionModel model) Generates aDescriptionModelfrom the specified source.- Parameters:
source- the source directory.configuration- the configuration properties.model- the model (nullpermitted).- Returns:
- A class description model.
-
writeSingleFile
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.
-
writeMultiFile
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.
-