|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.RendererConfig.Builder
public static final class RendererConfig.Builder
Builder to create instances of type RendererConfig
.
Constructor Summary | |
---|---|
RendererConfig.Builder() |
Method Summary | |
---|---|
RendererConfig |
build() Validates the information passed to the builder and creates in instance of type RendererConfig . |
void |
setBundle(ResourceBundle bundle) Sets the message bundle for labels. |
void |
setColumns(List<String> columns) Sets the value for columns. |
void |
setColumnWidths(List<String> columnWidths) Sets the value for columnWidths. |
void |
setComponent(String component) Sets the value for component. |
void |
setCurrentReleaseVersion(org.apache.maven.artifact.versioning.ArtifactVersion currentReleaseVersion) Sets the current version of the project. |
void |
setDescription(String description) Sets the description to be set in the configuration to be used instead of the one found in the localized files. |
void |
setDescriptionFile(File descriptionFile) Sets the description file is a XDoc file to be included as-is into the generated report. |
void |
setFooterText(String footerText) Sets the text to be added as a footer as raw text. |
void |
setIncludeComponentAtIndex(int includeComponentAtIndex) Sets the value for includeComponentAtIndex. |
void |
setIncludeComponentAtIndexColumnWidth(int includeComponentAtIndexColumnWidth) Sets the value for includeComponentAtIndexColumnWidth. |
void |
setIncludeOnSamePageAllOfVersion(VersionType includeOnSamePageAll) Sets the value for includeOnSamePageAll. |
void |
setNoResultsDescription(String noResultsDescription) Sets the description to be set in the configuration if no issue matches the query to be used instead of the one found in the localized files. |
void |
setQueryName(String queryName) Sets the name of the query to execute. |
void |
setRenderEmailAdresses(boolean renderEmailAdresses) Sets the value of the flag that indicates whether or not eMail addresses should be rendered. |
void |
setReportReferences(List<ReportReference> reportReferences) Sets the references to former reports. |
void |
setSections(List<String> sections) Sets the order of the values specified for the sectionType . |
void |
setSectionType(String sectionType) Sets the type (probably but not necessarily a user type) that specifies the information in the issue that is used to group the issues in sections. |
void |
setTitle(String title) Sets the title to be set in the configuration to be used instead of the one found in the localized files. |
void |
setVersionFactory(VersionFactory versionFactory) Sets the factory to create comparable version instances. |
void |
setVersionRange(ArtifactVersionRange versionRange) Sets the range defining the versions of issues to be rendered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RendererConfig.Builder()
Method Detail |
---|
public void setBundle(ResourceBundle bundle)
bundle
- the message bundle for labels.
public void setComponent(String component)
Sets the component(s) that you want to limit your report to include. Multiple components can be separated by commas. If this is set to empty - that means all components.
component
- the value for component.
public void setSectionType(String sectionType)
For example a user type ct_type
may be defined to specify the type of an issue. Valid types could be Bug
, New Feature
, Improvement
, and Task
.
sectionType
- the type (probably but not necessarily a user type) that specifies the information in the issue that is used to group the issues in sections.
public void setSections(List<String> sections)
sectionType
. Only values specified in this list will be rendered at all.
Regarding the example given for sectionType
, this list could define New Feature
, Bug
, Improvement
. This would render issues tagged as new features in the first, issues tagged as bugs in the second and issues tagged as improvements in the last section. Issues tagged as tasks will not be rendered.
sections
- the order of the values specified for the
sectionType
.
public void setQueryName(String queryName)
queryName
- the name of the query to execute.
public void setColumns(List<String> columns)
Lists the columns to be rendered. Each element of this list is a property of an issue. The identifiers given here must match the ones defined in the referenced issue management system. E.g. for Bugzilla these are defined in org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute
.
columns
- the value for columns.
public void setColumnWidths(List<String> columnWidths)
Lists the column width to be used to set to the columns. If the value is 0
(zero) no width will be set explicitly for that column.
columnWidths
- the value for columnWidths.
public void setIncludeComponentAtIndex(int includeComponentAtIndex)
Specifies the index (zero bases) of the column at which the component information
is to rendered. This option is only taken into account if the component property
does not specify exactly one component. Please note that this cannot be used in named queries.
This is a handy option for running the report on a multi project. Sub projects specify exactly one component while the parent project specifies none. The result with setting an index of e.g. 1
is that in each sub project the component is not mentioned while it is on the parent project (listing all issues of all projects) it is rendered at the second column.
includeComponentAtIndex
- the value for includeComponentAtIndex.
public void setIncludeComponentAtIndexColumnWidth(int includeComponentAtIndexColumnWidth)
Specifies the column width for the includeComponentAtIndex
property. If that property is not set, this property value is ignored.
includeComponentAtIndexColumnWidth
- the value for includeComponentAtIndexColumnWidth.
public void setRenderEmailAdresses(boolean renderEmailAdresses)
A value of true
indicates that the eMail address should be rendered (e.g. as a mailto anchor in HTML for an assignee name), false
if no eMail address information should be written.
renderEmailAdresses
- the value of the flag that indicates whether or not eMail addresses should be rendered.
public void setIncludeOnSamePageAllOfVersion(VersionType includeOnSamePageAll)
On the same page all of the given version type are rendered. For instance if this value refers to the major version, all versions having the same major version are rendered. A value of micro implies that only the current version is to be rendered.
Defaults to VersionType.MAJOR
.
includeOnSamePageAll
- the value for includeOnSamePageAll.
public void setVersionRange(ArtifactVersionRange versionRange)
versionRange
- the range defining the versions of issues to be rendered.
public void setCurrentReleaseVersion(org.apache.maven.artifact.versioning.ArtifactVersion currentReleaseVersion)
currentReleaseVersion
- the current version of the project.
public void setVersionFactory(VersionFactory versionFactory)
versionFactory
- the factory to create comparable version instances.
public void setTitle(String title)
This value may be null
in which case the renderer retrieves a default value (probably assuming that a release notes report is rendered).
title
- the title to be set in the configuration to be used instead of the one found in the localized files.
public void setDescription(String description)
This value may be null
in which case the renderer retrieves a default value (probably assuming that a release notes report is rendered).
description
- the description to be set in the configuration to be used instead of the one found in the localized files.
public void setDescriptionFile(File descriptionFile)
descriptionFile
- the description file is a
XDoc file to include in the report.
public void setNoResultsDescription(String noResultsDescription)
This value may be omitted in which case the renderer retrieves a default value (probably assuming that a release notes report is rendered).
noResultsDescription
- the description to be set in the configuration if no issue matches the query to be used instead of the one found in the localized files.
public void setFooterText(String footerText)
footerText
- the text to be added as a footer as raw text.
public RendererConfig build() throws IllegalArgumentException
RendererConfig
.
IllegalArgumentException
- if the information passed to the builder is invalid to create the instance.
public void setReportReferences(List<ReportReference> reportReferences)
reportReferences
- the references to former reports.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |