/** * Returns the label for the given <code>key</code>. * * @param key the key to the requested label. * @return the label to the <code>key</code> or the <code>key</code>, if no * label is found for that <code>key</code>. */ public String getLabel(final String key) { return getLabel(key, key); }
void renderInPageLink(final String id) { final String label = messages.getLabel(id); renderInPageLink(label, id); }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ public String getDescription(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(description) ? description : messages .getLabel("report.description." + outputName); }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ public String getName(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(name) ? name : messages .getLabel("report.name." + outputName); }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ public String getName(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(name) ? name : messages .getLabel("report.name." + outputName); }
/** * Renders the footer text. */ protected void renderFooter() { final String footerText = messages.getLabel("report.footer"); if (StringUtils.isNotBlank(footerText)) { sink.rawText(footerText); } }
/** * Renders the footer text. */ protected void renderFooter() { final String footerText = messages.getLabel("report.footer"); if (StringUtils.isNotBlank(footerText)) { sink.rawText(footerText); } }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ public String getDescription(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(description) ? description : messages .getLabel("report.description." + outputName); }
private void renderScenarioHeader() { sink.tableHeaderCell(); final String scenarioLabel = messages.getLabel("report.table.header.scenario"); sink.text(scenarioLabel); sink.tableHeaderCell_(); }
private void renderScenarioHeader() { sink.tableHeaderCell(); final String scenarioLabel = messages.getLabel("report.table.header.scenario"); sink.text(scenarioLabel); sink.tableHeaderCell_(); }
@Override protected void renderSentence(final ScenarioTestDoc scenario) { sink.tableCell(); final String testSentence = messages.getLabel(scenario.getId(), scenario.getTestMethod() .getTestSentence()); sink.text(testSentence); sink.tableCell_(); }
protected void renderPageStart() { sink.head(); sink.title(); sink.text(messages.getLabel(messages.getReportTitleId())); sink.title_(); sink.head_(); sink.body(); }
protected void renderPageStart() { sink.head(); sink.title(); sink.text(messages.getLabel(messages.getReportTitleId())); sink.title_(); sink.head_(); sink.body(); }