Class GoalRenderer
java.lang.Object
org.apache.maven.reporting.AbstractMavenReportRenderer
org.apache.maven.plugin.plugin.report.AbstractPluginReportRenderer
org.apache.maven.plugin.plugin.report.GoalRenderer
- All Implemented Interfaces:
org.apache.maven.reporting.MavenReportRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.maven.plugin.descriptor.MojoDescriptorprivate final booleanprivate static final PatternRegular expression matching an XHTML link with group 1 = link target, group 2 = link label.private final org.apache.maven.plugin.logging.Logprivate final FileThe directory where the generated site is written.Fields inherited from class org.apache.maven.plugin.plugin.report.AbstractPluginReportRenderer
locale, projectFields inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
sink -
Constructor Summary
ConstructorsConstructorDescriptionGoalRenderer(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, Locale locale, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.MojoDescriptor descriptor, File reportOutputDirectory, boolean disableInternalJavadocLinkValidation, org.apache.maven.plugin.logging.Log log) -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<org.apache.maven.plugin.descriptor.Parameter> filterParameters(Collection<org.apache.maven.plugin.descriptor.Parameter> parameterList) Filter parameters to only retain those which must be documented, i.e.private StringConvenience method.private StringLooks up the value forkeyin theResourceBundle, then formats that value for the specifiedLocaleusingargs.protected StringgetLinkedType(org.apache.maven.plugin.descriptor.Parameter parameter, boolean isShortType) private static StringgetPropertyFromExpression(String expression) (package private) static StringgetShortType(String type) private static Stringprivate static StringgetTitle()(package private) StringgetXhtmlWithValidatedLinks(String xhtmlText, String context) private voidrenderAttribute(boolean condition, String attributeKey) private voidrenderAttribute(boolean condition, String attributeKey, Optional<String> codeArgument) private voidrenderAttribute(String conditionAndCodeArgument, String attributeKey) private voidprotected voidprivate voidrenderDeprecatedParameterDescription(String deprecated, String context) private voidrenderDescription(String prefixKey, String description, boolean isHtmlMarkup) A description consists of a term/prefix and the actual description textprivate voidrenderDescriptionPrefix(String prefixKey) private voidrenderDetail(String param, String value) private voidrenderDetail(String param, String value, Optional<String> valueLink) private voidrenderParameterDetails(Iterator<org.apache.maven.plugin.descriptor.Parameter> parameters) private voidrenderParameterOverviewTable(String title, Iterator<org.apache.maven.plugin.descriptor.Parameter> parameters) private voidrenderParameterOverviewTableRow(org.apache.maven.plugin.descriptor.Parameter parameter) private voidprivate voidrenderTableCellDetail(String nameKey, String value) private voidprivate voidrenderTableCellWithCode(String text, Optional<String> link) Methods inherited from class org.apache.maven.plugin.plugin.report.AbstractPluginReportRenderer
getI18nString, getI18nStringMethods inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
createLinkPatternedText, endSection, endTable, javaScript, link, linkPatternedText, paragraph, propertiesToString, render, startSection, startSection, startTable, startTable, tableCaption, tableCell, tableCell, tableHeader, tableHeaderCell, tableRow, text, verbatimLink, verbatimSource, verbatimText
-
Field Details
-
HTML_LINK_PATTERN
Regular expression matching an XHTML link with group 1 = link target, group 2 = link label. -
reportOutputDirectory
The directory where the generated site is written. Used for resolving relative links to javadoc. -
descriptor
private final org.apache.maven.plugin.descriptor.MojoDescriptor descriptor -
disableInternalJavadocLinkValidation
private final boolean disableInternalJavadocLinkValidation -
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
GoalRenderer
public GoalRenderer(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, Locale locale, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.MojoDescriptor descriptor, File reportOutputDirectory, boolean disableInternalJavadocLinkValidation, org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceorg.apache.maven.reporting.MavenReportRenderer- Overrides:
getTitlein classAbstractPluginReportRenderer
-
renderBody
protected void renderBody()- Specified by:
renderBodyin classorg.apache.maven.reporting.AbstractMavenReportRenderer
-
filterParameters
private static List<org.apache.maven.plugin.descriptor.Parameter> filterParameters(Collection<org.apache.maven.plugin.descriptor.Parameter> parameterList) Filter parameters to only retain those which must be documented, i.e. neither components nor read-only ones.- Parameters:
parameterList- not null- Returns:
- the parameters list without components.
-
renderReportNotice
private void renderReportNotice() -
renderDescription
A description consists of a term/prefix and the actual description text -
renderDescriptionPrefix
-
renderAttributes
private void renderAttributes() -
renderAttribute
-
renderAttribute
-
renderAttribute
-
renderParameterOverviewTable
-
renderTableCellWithCode
-
renderTableCellWithCode
-
renderParameterOverviewTableRow
private void renderParameterOverviewTableRow(org.apache.maven.plugin.descriptor.Parameter parameter) -
renderParameterDetails
private void renderParameterDetails(Iterator<org.apache.maven.plugin.descriptor.Parameter> parameters) -
renderDeprecatedParameterDescription
-
renderTableCellDetail
-
renderDetail
-
renderDetail
-
getPropertyFromExpression
-
getShortType
-
getShortTypeOfTypeArgument
-
getShortTypeOfSimpleType
-
getLinkedType
-
getXhtmlWithValidatedLinks
-
format
Convenience method.- Parameters:
key- not nullarg1- not null- Returns:
- Localized, formatted text identified by
key. - See Also:
-
format
Looks up the value forkeyin theResourceBundle, then formats that value for the specifiedLocaleusingargs.- Parameters:
key- not nullargs- not null- Returns:
- Localized, formatted text identified by
key.
-
getI18nSection
- Specified by:
getI18nSectionin classAbstractPluginReportRenderer- Returns:
- the key prefix to be used with every key. Is prepended by
report..
-