org.nuiton.util.plugin.report
Class ApplicationConfigReportRenderer

java.lang.Object
  extended by org.apache.maven.reporting.AbstractMavenReportRenderer
      extended by org.nuiton.util.plugin.report.ApplicationConfigReportRenderer
All Implemented Interfaces:
org.apache.maven.reporting.MavenReportRenderer

public class ApplicationConfigReportRenderer
extends org.apache.maven.reporting.AbstractMavenReportRenderer

Render the ApplicationConfigReport report.

Since:
2.4.8
Author:
tchemit

Field Summary
protected  String bundleName
          The name of the bundle containing our I18n resources.
protected  Set<ApplicationConfigProvider> configProviders
          Set of config providers to generate.
protected  org.codehaus.plexus.i18n.I18N i18n
          Internationalization component.
protected  Locale locale
          The locale we are rendering for.
protected  boolean optionWithDetail
          To show option in detail.
 
Fields inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
sink
 
Constructor Summary
ApplicationConfigReportRenderer(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, Locale locale, String bundleName, Set<ApplicationConfigProvider> configProviders, boolean optionWithDetail)
           
 
Method Summary
protected  String getDefaultValue(ApplicationConfig.OptionDef option)
           
protected  Collection<ApplicationConfig.OptionDef> getOptions(ApplicationConfigProvider configProvider)
           
protected  String getText(boolean key)
           
protected  String getText(String key)
          Gets the localized message for this report.
 String getTitle()
           
protected  void renderActionDefsTable(ApplicationConfig.ActionDef... actions)
           
 void renderBody()
           
protected  void renderErrorIcon()
           
protected  void renderInfoIcon()
           
protected  void renderOptionDefsTable(ApplicationConfigProvider configProvider, Collection<ApplicationConfig.OptionDef> options)
           
protected  void renderSuccessIcon()
           
protected  void renderWarningIcon()
           
protected  void sinkCellLink(String text, String url)
           
protected  void sinkCellText(String text)
           
protected  void sinkCellText(String width, String text)
           
protected  void sinkCellVerbatimText(String text)
           
protected  void sinkHeaderCellText(String text)
           
protected  void sinkHeaderCellText(String width, String text)
           
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
createLinkPatternedText, endSection, endTable, javaScript, link, linkPatternedText, paragraph, propertiesToString, render, startSection, startTable, startTable, tableCaption, tableCell, tableCell, tableHeader, tableHeaderCell, tableRow, text, verbatimLink, verbatimText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18n

protected final org.codehaus.plexus.i18n.I18N i18n
Internationalization component.

Since:
2.4.8

locale

protected final Locale locale
The locale we are rendering for.

Since:
2.4.8

bundleName

protected final String bundleName
The name of the bundle containing our I18n resources.

Since:
2.4.8

configProviders

protected final Set<ApplicationConfigProvider> configProviders
Set of config providers to generate.

Since:
2.4.8

optionWithDetail

protected final boolean optionWithDetail
To show option in detail.

Since:
2.4.8
Constructor Detail

ApplicationConfigReportRenderer

public ApplicationConfigReportRenderer(org.apache.maven.doxia.sink.Sink sink,
                                       org.codehaus.plexus.i18n.I18N i18n,
                                       Locale locale,
                                       String bundleName,
                                       Set<ApplicationConfigProvider> configProviders,
                                       boolean optionWithDetail)
Method Detail

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.maven.reporting.MavenReportRenderer
Specified by:
getTitle in class org.apache.maven.reporting.AbstractMavenReportRenderer

renderBody

public void renderBody()
Specified by:
renderBody in class org.apache.maven.reporting.AbstractMavenReportRenderer

renderOptionDefsTable

protected void renderOptionDefsTable(ApplicationConfigProvider configProvider,
                                     Collection<ApplicationConfig.OptionDef> options)

renderActionDefsTable

protected void renderActionDefsTable(ApplicationConfig.ActionDef... actions)

getText

protected String getText(boolean key)

getText

protected String getText(String key)
Gets the localized message for this report.

Parameters:
key - the message key.
Returns:
the message.

getDefaultValue

protected String getDefaultValue(ApplicationConfig.OptionDef option)

renderWarningIcon

protected void renderWarningIcon()

renderErrorIcon

protected void renderErrorIcon()

renderSuccessIcon

protected void renderSuccessIcon()

renderInfoIcon

protected void renderInfoIcon()

sinkHeaderCellText

protected void sinkHeaderCellText(String text)

sinkHeaderCellText

protected void sinkHeaderCellText(String width,
                                  String text)

sinkCellText

protected void sinkCellText(String width,
                            String text)

sinkCellText

protected void sinkCellText(String text)

sinkCellVerbatimText

protected void sinkCellVerbatimText(String text)

sinkCellLink

protected void sinkCellLink(String text,
                            String url)

getOptions

protected Collection<ApplicationConfig.OptionDef> getOptions(ApplicationConfigProvider configProvider)


Copyright © 2012 CodeLutin. All Rights Reserved.