public class DefaultMetaInformation extends Object implements MetaInformation
| Constructor and Description |
|---|
DefaultMetaInformation()
Default Constructor.
|
DefaultMetaInformation(File metaFile)
Constructor with XML configuration file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllReports(Collection<? extends BugzillaReportGenerator> c)
Adds multiple report generators.
|
boolean |
addReport(BugzillaReportGenerator e)
Adds a new report generator.
|
void |
clearReports()
Clears all generators.
|
void |
configure(org.apache.commons.configuration.XMLConfiguration config)
Configures the data from an XML configuration object.
|
void |
dump()
Debug information into log.
|
void |
dump(org.slf4j.Logger log)
Debug information into log.
|
SearchData |
getBugzillaSearchData()
Returns the search data.
|
Session |
getBugzillaSession()
Returns the session object to be used.
|
Iterator<BugzillaReportGenerator> |
getReports()
Returns all report generators.
|
void |
read(File metaFile)
Reads the XML configuration file.
|
void |
read(Reader reader)
Reads and parses the XML configuration file from a stream reader.
|
boolean |
removeAllReports(Collection<?> c)
Removes all generators listed in argument.
|
boolean |
removeReport(BugzillaReportGenerator o)
Removes a report generator.
|
void |
setSearchData(SearchData searchData)
Sets the search parameter object.
|
public void read(File metaFile) throws Exception
metaFile - - the XML file to readException - - if an error occurspublic void read(Reader reader) throws org.apache.commons.configuration.ConfigurationException
reader - - a reader on the XML file.org.apache.commons.configuration.ConfigurationException - - if a configuration error occurspublic void configure(org.apache.commons.configuration.XMLConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
config - - XML configurationorg.apache.commons.configuration.ConfigurationException - - if a configuration error occurspublic Iterator<BugzillaReportGenerator> getReports()
getReports in interface MetaInformationpublic SearchData getBugzillaSearchData()
getBugzillaSearchData in interface MetaInformationpublic Session getBugzillaSession()
getBugzillaSession in interface MetaInformationpublic boolean addReport(BugzillaReportGenerator e)
e - - the generator to addpublic boolean addAllReports(Collection<? extends BugzillaReportGenerator> c)
c - - collection of generators to addpublic void clearReports()
public boolean removeReport(BugzillaReportGenerator o)
o - - generator object to removepublic boolean removeAllReports(Collection<?> c)
c - - all generators to removepublic void setSearchData(SearchData searchData)
searchData - - the search data to setpublic void dump()
public void dump(org.slf4j.Logger log)
dump in interface MetaInformationlog - - the log objectCopyright © 2012. All Rights Reserved.