org.apache.maven.doxia.sink.Sink.sectionTitle2()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(10.0k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.apache.maven.doxia.sink.Sink.sectionTitle2()方法的一些代码示例,展示了Sink.sectionTitle2()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.sectionTitle2()方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:sectionTitle2

Sink.sectionTitle2介绍

暂无

代码示例

代码示例来源:origin: mojohaus/versions-maven-plugin

private void renderDependencyDetail( Dependency dependency, ArtifactVersions details )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( ArtifactUtils.versionlessKey( dependency.getGroupId(), dependency.getArtifactId() ) );
  sink.sectionTitle2_();
  renderDependencyDetailTable( dependency, details );
  sink.section2_();
}

代码示例来源:origin: org.codehaus.mojo/versions-maven-plugin

private void renderDependencyDetail( Dependency dependency, ArtifactVersions details )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( ArtifactUtils.versionlessKey( dependency.getGroupId(), dependency.getArtifactId() ) );
  sink.sectionTitle2_();
  renderDependencyDetailTable( dependency, details );
  sink.section2_();
}

代码示例来源:origin: mojohaus/versions-maven-plugin

private void renderPropertyDetail( Property property, PropertyVersions versions )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( "${" + property.getName() + "" );
  sink.sectionTitle2_();
  renderPropertyDetailTable( property, versions );
  sink.section2_();
}

代码示例来源:origin: org.codehaus.mojo/versions-maven-plugin

private void renderPropertyDetail( Property property, PropertyVersions versions )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( "${" + property.getName() + "" );
  sink.sectionTitle2_();
  renderPropertyDetailTable( property, versions );
  sink.section2_();
}

代码示例来源:origin: revapi/revapi

private void reportDifferences(
  EnumMap<CompatibilityType, List<ReportTimeReporter.DifferenceReport>> diffsPerType, Sink sink,
  ResourceBundle bundle, String typeKey) {
  if (diffsPerType == null || diffsPerType.isEmpty()) {
    return;
  }
  sink.section2();
  sink.sectionTitle2();
  sink.text(bundle.getString(typeKey));
  sink.sectionTitle2_();
  reportDifferences(diffsPerType.get(CompatibilityType.BINARY), sink, bundle,
    "report.revapi.compatibilityType.binary");
  reportDifferences(diffsPerType.get(CompatibilityType.SOURCE), sink, bundle,
    "report.revapi.compatibilityType.source");
  reportDifferences(diffsPerType.get(CompatibilityType.SEMANTIC), sink, bundle,
    "report.revapi.compatibilityType.semantic");
  reportDifferences(diffsPerType.get(CompatibilityType.OTHER), sink, bundle,
    "report.revapi.compatibilityType.other");
  sink.section2_();
}

代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin

private void renderTestDocs(final Set<UnitTestDoc> testDocs)
 throws IOException
{
 sink.section2();
 helper.renderAnchor("unitTestDoc");
 sink.sectionTitle2();
 sink.text(messages.getLabel("report.unitTestDoc"));
 sink.sectionTitle2_();
 for (final UnitTestDoc testDoc : testDocs)
 {
  exporter.export(testDoc);
 }
 sink.section2_();
}

代码示例来源:origin: revapi/revapi

@Override
protected void reportBody(ReportTimeReporter reporterWithResults, API oldAPI, API newAPI, Sink sink,
    ResourceBundle messages) {
  if (oldAPI == null || newAPI == null) {
    return;
  }
  sink.section2();
  sink.sectionTitle2();
  String title = messages.getString("report.revapi.aggregate.subTitle");
  sink.rawText(MessageFormat.format(title, niceList(oldAPI.getArchives()), niceList(newAPI.getArchives())));
  sink.sectionTitle2_();
  super.reportBody(reporterWithResults, oldAPI, newAPI, sink, messages);
  sink.section2_();
}

代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin

private void renderTestDocs(final Set<UnitTestDoc> testDocs)
 throws IOException
{
 sink.section2();
 helper.renderAnchor("unitTestDoc");
 sink.sectionTitle2();
 sink.text(messages.getLabel("report.unitTestDoc"));
 sink.sectionTitle2_();
 for (final UnitTestDoc testDoc : testDocs)
 {
  exporter.export(testDoc);
 }
 sink.section2_();
}

代码示例来源:origin: net.thucydides.maven.plugins/maven-thucydides-plugin

private void generateOverviewSection(Sink sink) {
    sink.section1();
    sectionTitle(sink, "Overview");

    sink.sectionTitle2();
    sink.link("thucydides/index.html");
    sink.rawText("Dashboard");
    sink.link_();
    sink.sectionTitle2_();

//        sink.sectionTitle2();
//        sink.link("thucydides/stories.html");
//        sink.rawText("Stories");
//        sink.link_();
//        sink.sectionTitle2_();

    sink.section1_();
  }
//

代码示例来源:origin: mojohaus/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Property, PropertyVersions> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    renderPropertySummaryTable( contents );
  }
  sink.section2_();
}

代码示例来源:origin: org.codehaus.mojo/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Dependency, ArtifactVersions> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    renderDependencySummaryTable( contents );
  }
  sink.section2_();
}

代码示例来源:origin: org.codehaus.mojo/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Property, PropertyVersions> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    renderPropertySummaryTable( contents );
  }
  sink.section2_();
}

代码示例来源:origin: mojohaus/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Dependency, ArtifactVersions> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    renderDependencySummaryTable( contents );
  }
  sink.section2_();
}

代码示例来源:origin: mojohaus/license-maven-plugin

private void renderSummaryTable( String titleKey, Collection<ThirdPartyDetails> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    renderThirdPartySummaryTable( contents );
  }
  sink.section2_();
}

代码示例来源:origin: org.codehaus.mojo/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Plugin, PluginUpdatesDetails> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    sink.table();
    renderSummaryTableHeader();
    for ( final Map.Entry<Plugin, PluginUpdatesDetails> entry : contents.entrySet() )
    {
      renderPluginSummary( entry.getKey(), entry.getValue() );
    }
    renderSummaryTableHeader();
    sink.table_();
  }
  sink.section2_();
}

代码示例来源:origin: mojohaus/versions-maven-plugin

private void renderSummaryTable( String titleKey, Map<Plugin, PluginUpdatesDetails> contents, String emptyKey )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getText( titleKey ) );
  sink.sectionTitle2_();
  if ( contents.isEmpty() )
  {
    sink.paragraph();
    sink.text( getText( emptyKey ) );
    sink.paragraph_();
  }
  else
  {
    sink.table();
    renderSummaryTableHeader();
    for ( final Map.Entry<Plugin, PluginUpdatesDetails> entry : contents.entrySet() )
    {
      renderPluginSummary( entry.getKey(), entry.getValue() );
    }
    renderSummaryTableHeader();
    sink.table_();
  }
  sink.section2_();
}

代码示例来源:origin: mojohaus/license-maven-plugin

private void renderThirdPartyDetail( ThirdPartyDetails detail )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( getGAV( detail ) );
  sink.sectionTitle2_();
  renderThirdPartyDetailTable( detail );
  sink.link( "./third-party-report.html#" + getText( "report.overview.title" ) );
  sink.text( getText( "report.back.to.top.page" ) );
  sink.link_();
  sink.lineBreak();
  sink.section2_();
}

代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin

private void startFileSection( String currentFilename, PmdFileInfo fileInfo )
{
  sink.section2();
  sink.sectionTitle2();
  // prepare the filename
  this.currentFilename = shortenFilename( currentFilename, fileInfo );
  sink.text( makeFileSectionName( this.currentFilename, fileInfo ) );
  sink.sectionTitle2_();
  sink.table();
  sink.tableRow();
  sink.tableHeaderCell();
  sink.text( bundle.getString( "report.pmd.column.violation" ) );
  sink.tableHeaderCell_();
  if ( this.renderRuleViolationPriority )
  {
    sink.tableHeaderCell();
    sink.text( bundle.getString( "report.pmd.column.priority" ) );
    sink.tableHeaderCell_();
  }
  sink.tableHeaderCell();
  sink.text( bundle.getString( "report.pmd.column.line" ) );
  sink.tableHeaderCell_();
  sink.tableRow_();
}

代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin

private void renderIndexOfIndexes(final ExportMultiIndex index)
{
 final InformationFilter filter = exporter.getInformationFilter();
 if (filter.isShowIndexOfIndices() && !index.isEmpty())
 {
  sink.section2();
  sink.anchor("indexOfIndexes");
  sink.anchor_();
  sink.sectionTitle2();
  sink.text(messages.getLabel("report.indexOfIndexes"));
  sink.sectionTitle2_();
  helper.renderIndexTableStart();
  int counter = 1;
  for (final ExportIndex exportIndex : index.getIndexes())
  {
   if (!exportIndex.isEmpty())
   {
    final String name = exportIndex.getSectionName();
    final String label = messages.getLabel(name);
    helper.renderIndexRow(counter, label);
    counter++;
   }
  }
  helper.renderIndexTableEnd();
  sink.section2_();
 }
}

代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin

private void renderIndexOfIndexes(final ExportMultiIndex index)
{
 final InformationFilter filter = exporter.getInformationFilter();
 if (filter.isShowIndexOfIndices() && !index.isEmpty())
 {
  sink.section2();
  sink.anchor("indexOfIndexes");
  sink.anchor_();
  sink.sectionTitle2();
  sink.text(messages.getLabel("report.indexOfIndexes"));
  sink.sectionTitle2_();
  helper.renderIndexTableStart();
  int counter = 1;
  for (final ExportIndex exportIndex : index.getIndexes())
  {
   if (!exportIndex.isEmpty())
   {
    final String name = exportIndex.getSectionName();
    final String label = messages.getLabel(name);
    helper.renderIndexRow(counter, label);
    counter++;
   }
  }
  helper.renderIndexTableEnd();
  sink.section2_();
 }
}

相关文章