Class VersionsReportRendererBase
java.lang.Object
org.apache.maven.reporting.AbstractMavenReportRenderer
org.codehaus.mojo.versions.reporting.VersionsReportRendererBase
- All Implemented Interfaces:
org.apache.maven.reporting.MavenReportRenderer,ReportRenderer
- Direct Known Subclasses:
AbstractVersionsReportRenderer
public abstract class VersionsReportRendererBase
extends org.apache.maven.reporting.AbstractMavenReportRenderer
implements ReportRenderer
Base class over AbstractVersionsReportRenderer providing base
utility methods
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe name of the bundle containing our I18n resources.protected final org.codehaus.plexus.i18n.I18NInternationalization component.protected LocaleThe locale we are rendering for.Fields inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
sink -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVersionsReportRendererBase(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, Locale locale, String bundleName, boolean allowSnapshots) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanequals(org.apache.maven.artifact.versioning.ArtifactVersion v1, org.apache.maven.artifact.versioning.ArtifactVersion v2) Gets the localized message for this report.getTitle()booleanIftrue, the report renderer will include snapshots in the reportprotected voidrenderBoldCell(boolean bold, Object object) Renders a bold table cell containing the given text.protected voidrenderBoldCell(Object object) Renders a bold table cell containing the given text.protected voidrenderBoldText(boolean bold, Object object) Renders a bold text.protected voidrenderCell(Object object) Renders a table cell containing the given text.protected voidrenderCells(Object... objects) Renders multiple cells containing the given texts.protected voidprotected voidrenderTableHeaderCells(String... keys) Renders a table header containing elements denoted by the given keysprotected voidMethods inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
createLinkPatternedText, endSection, endTable, javaScript, link, linkPatternedText, paragraph, propertiesToString, render, renderBody, startSection, startSection, startTable, startTable, tableCaption, tableCell, tableCell, tableHeader, tableHeaderCell, tableRow, text, verbatimLink, verbatimSource, verbatimTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.reporting.MavenReportRenderer
render
-
Field Details
-
i18n
protected final org.codehaus.plexus.i18n.I18N i18nInternationalization component.- Since:
- 1.0-beta-1
-
locale
The locale we are rendering for.- Since:
- 1.0-beta-1
-
bundleName
The name of the bundle containing our I18n resources.- Since:
- 1.0-beta-1
-
-
Constructor Details
-
VersionsReportRendererBase
-
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceorg.apache.maven.reporting.MavenReportRenderer- Specified by:
getTitlein classorg.apache.maven.reporting.AbstractMavenReportRenderer
-
isAllowSnapshots
public boolean isAllowSnapshots()Description copied from interface:ReportRendererIftrue, the report renderer will include snapshots in the report- Specified by:
isAllowSnapshotsin interfaceReportRenderer- Returns:
- if
true, the report renderer will include snapshots in the report
-
getText
Gets the localized message for this report.- Parameters:
key- the message key.- Returns:
- the message.
-
renderWarningIcon
protected void renderWarningIcon() -
renderSuccessIcon
protected void renderSuccessIcon() -
equals
protected boolean equals(org.apache.maven.artifact.versioning.ArtifactVersion v1, org.apache.maven.artifact.versioning.ArtifactVersion v2) -
renderTableHeaderCells
Renders a table header containing elements denoted by the given keys- Parameters:
keys- variable argument list containing keys of the property file to retrieve the headers from
-
renderBoldCell
Renders a bold table cell containing the given text.- Parameters:
object- the text to be rendered, or null for an empty cell.
-
renderCell
Renders a table cell containing the given text.- Parameters:
object- the text to be rendered, or null for an empty cell.
-
renderCells
Renders multiple cells containing the given texts.- Parameters:
objects- the texts to be rendered, null for empty cells.
-
renderBoldCell
Renders a bold table cell containing the given text.- Parameters:
bold- true to render the cell in bold, false otherwise.object- the text to be rendered, or null for an empty cell.
-
renderBoldText
Renders a bold text.- Parameters:
bold- true to render the text in bold, false otherwise.object- the text to be rendered, or null for an empty cell.
-