public class GenerateReports extends Object implements Runnable
MetaInformation object that
delivers the Bugzilla session object to be used, the search parameters
that bugs must fulfill in order to be included in a report, and the
actual report objects that will create the output.
Users of this class just need to create an instance, feed the appropriate
MetaInformation and run it through its Runnable interface.
The implemented main(String[]) method reads information from
a given XML file and creates a MetaInformation object out of it.
| Constructor and Description |
|---|
GenerateReports()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.commons.cli.Options |
getCommandLineOptions()
Creates the command line options.
|
MetaInformation |
getMetaInformation()
Returns the meta information object for this generator.
|
boolean |
isCloseSessionWhenDone()
Returns whether the generator will close the Bugzilla session
after all reports were generated.
|
static void |
main(String[] args)
Starts the generator from command line.
|
void |
run()
Actually runs the report.
|
void |
setCloseSessionWhenDone(boolean closeSessionWhenDone)
Controls whether Bugzilla session will be closed after all
reports were created.
|
void |
setMetaInformation(MetaInformation metaInformation)
Sets the meta information object that this generator shall use.
|
public MetaInformation getMetaInformation()
public void setMetaInformation(MetaInformation metaInformation)
metaInformation - the meta information to setpublic boolean isCloseSessionWhenDone()
public void setCloseSessionWhenDone(boolean closeSessionWhenDone)
closeSessionWhenDone - - true if session shall be closed, false otherwise.public static void main(String[] args)
args - - command line arguments.protected static org.apache.commons.cli.Options getCommandLineOptions()
public void run()
closeSessionWhenDone.Copyright © 2012. All Rights Reserved.