public final class DescriptionGenerator
extends java.lang.Object
Constructor and Description |
---|
DescriptionGenerator() |
Modifier and Type | Method and Description |
---|---|
static DescriptionModel |
generate(java.lang.String source,
java.util.Properties configuration,
DescriptionModel model)
Generates a
DescriptionModel from the specified source. |
private static java.util.Properties |
loadProperties(java.net.URL propertyURL)
Loads a property set from the specified URL.
|
static void |
main(java.lang.String[] args)
Runs the generator, using the 'generator.properties' file for configuration info.
|
static void |
writeMultiFile(java.lang.String target,
DescriptionModel model)
Writes the class description model to multiple files.
|
static void |
writeSingleFile(java.lang.String target,
DescriptionModel model)
Writes the class description model to a single file.
|
private static java.util.Properties loadProperties(java.net.URL propertyURL)
propertyURL
- the URL.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- command line arguments.java.lang.Exception
- if something goes wrong!public static DescriptionModel generate(java.lang.String source, java.util.Properties configuration, DescriptionModel model)
DescriptionModel
from the specified source.source
- the source directory.configuration
- the configuration properties.model
- the model (null
permitted).public static void writeSingleFile(java.lang.String target, DescriptionModel model) throws java.io.IOException
target
- the target file name.model
- the class description model.java.io.IOException
- if there is an I/O problem.public static void writeMultiFile(java.lang.String target, DescriptionModel model) throws java.io.IOException
target
- the target file name.model
- the class description model.java.io.IOException
- if there is an I/O problem.