Package org.apache.maven.reporting
Interface MavenReport
-
- All Known Subinterfaces:
MavenMultiPageReport
public interface MavenReportThe basis for a Maven report.- Since:
- 2.0
- Version:
- $Id: MavenReport.java 942378 2010-05-08 13:06:13Z hboutemy $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCATEGORY_PROJECT_INFORMATIONCategory for project information reportsstatic java.lang.StringCATEGORY_PROJECT_REPORTSCategory for project reportsstatic java.lang.StringROLEPlexus lookup name
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanGenerateReport()Verify some conditions before generate the report.voidgenerate(org.codehaus.doxia.sink.Sink sink, java.util.Locale locale)Generate the report depending the wanted locale.java.lang.StringgetCategoryName()Get the category name for this report.java.lang.StringgetDescription(java.util.Locale locale)Get the localized report description.java.lang.StringgetName(java.util.Locale locale)Get the localized report name.java.lang.StringgetOutputName()Get the base name used to create report's output file(s).java.io.FilegetReportOutputDirectory()booleanisExternalReport()An external report is a report which calls a third party program which generates some reports too.voidsetReportOutputDirectory(java.io.File outputDirectory)Set a new output directory.
-
-
-
Field Detail
-
ROLE
static final java.lang.String ROLE
Plexus lookup name
-
CATEGORY_PROJECT_INFORMATION
static final java.lang.String CATEGORY_PROJECT_INFORMATION
Category for project information reports- See Also:
- Constant Field Values
-
CATEGORY_PROJECT_REPORTS
static final java.lang.String CATEGORY_PROJECT_REPORTS
Category for project reports- See Also:
- Constant Field Values
-
-
Method Detail
-
generate
void generate(org.codehaus.doxia.sink.Sink sink, java.util.Locale locale) throws MavenReportExceptionGenerate the report depending the wanted locale.
Mainly used for external reports like javadoc.- Parameters:
sink- the sink to use for the generation.locale- the wanted locale to generate the report, could be null.- Throws:
MavenReportException- if any
-
getOutputName
java.lang.String getOutputName()
Get the base name used to create report's output file(s).- Returns:
- the output name of this report.
-
getCategoryName
java.lang.String getCategoryName()
Get the category name for this report.- Returns:
- the category name of this report. Should be
CATEGORY_PROJECT_INFORMATIONorCATEGORY_PROJECT_REPORTS
-
getName
java.lang.String getName(java.util.Locale locale)
Get the localized report name.- Parameters:
locale- the wanted locale to return the report's name, could be null.- Returns:
- the name of this report.
-
getDescription
java.lang.String getDescription(java.util.Locale locale)
Get the localized report description.- Parameters:
locale- the wanted locale to return the report's description, could be null.- Returns:
- the description of this report.
-
setReportOutputDirectory
void setReportOutputDirectory(java.io.File outputDirectory)
Set a new output directory. Useful for staging.- Parameters:
outputDirectory- the new output directory
-
getReportOutputDirectory
java.io.File getReportOutputDirectory()
- Returns:
- the current report output directory.
-
isExternalReport
boolean isExternalReport()
An external report is a report which calls a third party program which generates some reports too. A good example is javadoc tool.- Returns:
- true if this report is external, false otherwise. Default should be false.
-
canGenerateReport
boolean canGenerateReport()
Verify some conditions before generate the report.- Returns:
- true if this report could be generated, false otherwise. Default should be true.
-
-