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

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

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

Sink.section1介绍

暂无

代码示例

代码示例来源: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: revapi/revapi

protected void startReport(Sink sink, ResourceBundle messages) {
  sink.head();
  sink.title();
  sink.text(messages.getString("report.revapi.title"));
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.rawText(messages.getString("report.revapi.title"));
  sink.sectionTitle1_();
}

代码示例来源:origin: kreyssel/selenium2-visualdiff

@Override
  protected void renderBody() {
    sink.section1();
    sink.sectionTitle1();
    sink.text("Overview");
    sink.sectionTitle1_();
    sink.section1_();

    sink.text("This is the result of the screenshots compare of the current version '"
        + currentArtifact.getVersion() + "' and the latest version '"
        + previousArtifact.getVersion() + "'.");

    ImmutableListMultimap<String, VisualDiffMeta> perTest = VisualDiffMetaGrouper
        .byTestClass(diffs);
    VisualDiffReportUtil.renderTable(sink, Depth.CLASS, "Test Classes Overview", perTest);

    for (String testClass : perTest.keySet()) {
      ImmutableListMultimap<String, VisualDiffMeta> perMethod = VisualDiffMetaGrouper
          .byTestMethod(perTest.get(testClass));
      VisualDiffReportUtil.renderTable(sink, Depth.METHOD, "Test " + testClass, perMethod);
    }
  }
}

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

private void renderSectionStart(final int level)
{
 switch (level)
 {
  case 1:
   sink.section1();
   break;
  case 2:
   sink.section2();
   break;
  case 3:
   sink.section3();
   break;
  case 4:
   sink.section4();
   break;
  case 5:
   sink.section5();
   break;
  default:
   sink.section5();
   break;
 }
}

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

protected void renderBody()
{
  Map<Property, PropertyVersions> allUpdates = new TreeMap<>( new PropertyComparator() );
  allUpdates.putAll( propertyUpdates );
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.overview.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.overview.text" ) );
  sink.paragraph_();
  renderSummaryTotalsTable( allUpdates );
  renderSummaryTable( "report.overview.property", propertyUpdates, "report.overview.noProperty" );
  sink.section1_();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.detail.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.detail.text" ) );
  sink.paragraph_();
  for ( final Map.Entry<Property, PropertyVersions> entry : allUpdates.entrySet() )
  {
    renderPropertyDetail( entry.getKey(), entry.getValue() );
  }
  sink.section1_();
}

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

private void renderSectionStart(final int level)
{
 switch (level)
 {
  case 1:
   sink.section1();
   break;
  case 2:
   sink.section2();
   break;
  case 3:
   sink.section3();
   break;
  case 4:
   sink.section4();
   break;
  case 5:
   sink.section5();
   break;
  default:
   sink.section5();
   break;
 }
}

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

protected void renderBody()
{
  Map<Property, PropertyVersions> allUpdates = new TreeMap<>( new PropertyComparator() );
  allUpdates.putAll( propertyUpdates );
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.overview.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.overview.text" ) );
  sink.paragraph_();
  renderSummaryTotalsTable( allUpdates );
  renderSummaryTable( "report.overview.property", propertyUpdates, "report.overview.noProperty" );
  sink.section1_();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.detail.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.detail.text" ) );
  sink.paragraph_();
  for ( final Map.Entry<Property, PropertyVersions> entry : allUpdates.entrySet() )
  {
    renderPropertyDetail( entry.getKey(), entry.getValue() );
  }
  sink.section1_();
}

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

protected void renderBodyStart()
{
 sink.section1();
 sink.sectionTitle1();
 sink.text(messages.getLabel(messages.getReportTitleId()));
 sink.sectionTitle1_();
 sink.paragraph();
 sink.text(messages.getLabel(messages.getReportDescriptionId()));
 sink.paragraph_();
}

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

protected void renderBody()
{
  Map<Plugin, PluginUpdatesDetails> allUpdates = new TreeMap<>( new PluginComparator() );
  allUpdates.putAll( pluginManagementUpdates );
  allUpdates.putAll( pluginUpdates );
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.overview.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.overview.text" ) );
  sink.paragraph_();
  renderSummaryTotalsTable( allUpdates );
  renderSummaryTable( "report.overview.pluginManagement", pluginManagementUpdates,
            "report.overview.noPluginManagement" );
  renderSummaryTable( "report.overview.plugin", pluginUpdates, "report.overview.noPlugin" );
  sink.section1_();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.detail.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.detail.text" ) );
  sink.paragraph_();
  for ( final Map.Entry<Plugin, PluginUpdatesDetails> entry : allUpdates.entrySet() )
  {
    renderPluginDetail( entry.getKey(), entry.getValue() );
  }
  sink.section1_();
}

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

protected void renderBodyStart()
{
 sink.section1();
 sink.sectionTitle1();
 sink.text(messages.getLabel(messages.getReportTitleId()));
 sink.sectionTitle1_();
 sink.paragraph();
 sink.text(messages.getLabel(messages.getReportDescriptionId()));
 sink.paragraph_();
}

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

allUpdates.putAll( dependencyUpdates );
sink.section1();
sink.sectionTitle1();
sink.text( getText( "report.overview.title" ) );
sink.section1();
sink.sectionTitle1();
sink.text( getText( "report.detail.title" ) );

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

allUpdates.putAll( dependencyUpdates );
sink.section1();
sink.sectionTitle1();
sink.text( getText( "report.overview.title" ) );
sink.section1();
sink.sectionTitle1();
sink.text( getText( "report.detail.title" ) );

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

protected void renderBody()
{
  Map<Plugin, PluginUpdatesDetails> allUpdates = new TreeMap<>( new PluginComparator() );
  allUpdates.putAll( pluginManagementUpdates );
  allUpdates.putAll( pluginUpdates );
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.overview.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.overview.text" ) );
  sink.paragraph_();
  renderSummaryTotalsTable( allUpdates );
  renderSummaryTable( "report.overview.pluginManagement", pluginManagementUpdates,
            "report.overview.noPluginManagement" );
  renderSummaryTable( "report.overview.plugin", pluginUpdates, "report.overview.noPlugin" );
  sink.section1_();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getText( "report.detail.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( getText( "report.detail.text" ) );
  sink.paragraph_();
  for ( final Map.Entry<Plugin, PluginUpdatesDetails> entry : allUpdates.entrySet() )
  {
    renderPluginDetail( entry.getKey(), entry.getValue() );
  }
  sink.section1_();
}

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

sink.section1();
sink.sectionTitle1();
sink.text( bundle.getString( "report.pmd.processingErrors.title" ) );

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

/**
 * Create the header and title for the HTML report page.
 * 
 * @param bundle The resource bundle with the text.
 * @param sink The sink for writing to the main report file.
 */
private void createReportHeader( ResourceBundle bundle, Sink sink )
{
  sink.head();
  sink.title();
  sink.text( bundle.getString( "report.jjdoc.title" ) );
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.jjdoc.title" ) );
  sink.sectionTitle1_();
  sink.text( bundle.getString( "report.jjdoc.description" ) );
  sink.section1_();
  sink.lineBreak();
  sink.table();
  sink.tableRow();
  sink.tableHeaderCell();
  sink.text( bundle.getString( "report.jjdoc.table.heading" ) );
  sink.tableHeaderCell_();
  sink.tableRow_();
}

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

/**
 * Method that generates the start of the CPD report.
 */
public void beginDocument()
{
  sink.head();
  sink.title();
  sink.text( getTitle() );
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getTitle() );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( bundle.getString( "report.cpd.cpdlink" ) + " " );
  sink.link( "https://pmd.github.io/latest/pmd_userdocs_cpd.html" );
  sink.text( "CPD" );
  sink.link_();
  sink.text( " " + AbstractPmdReport.getPmdVersion() + "." );
  sink.paragraph_();
  sink.section1_();
  // TODO overall summary
  sink.section1();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.cpd.dupes" ) );
  sink.sectionTitle1_();
  // TODO files summary
}

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

public void beginDocument()
{
  sink.head();
  sink.title();
  sink.text( getTitle() );
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( getTitle() );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( bundle.getString( "report.pmd.pmdlink" ) + " " );
  sink.link( "https://pmd.github.io" );
  sink.text( "PMD" );
  sink.link_();
  sink.text( " " + AbstractPmdReport.getPmdVersion() + "." );
  sink.paragraph_();
  sink.section1_();
  // TODO overall summary
}

代码示例来源:origin: org.jvnet.hudson.plugins/jdepend

public void doGenerateReport( ResourceBundle bundle, Sink sink, JDependParser jdepend )
{
  this.jdepend = jdepend;
  sink.head();
  sink.title();
  sink.text( bundle.getString( "report.title" ) ); //$NON-NLS-1$
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.metricresults" ) ); //$NON-NLS-1$
  sink.sectionTitle1_();
  doSectionLinks( bundle, sink );
  sink.lineBreak();
  sink.lineBreak();
  sink.text( bundle.getString( "report.intro" ) ); //$NON-NLS-1$
  sink.lineBreak();
  sink.lineBreak();
  doSummarySection( bundle, sink );
  doPackagesSection( bundle, sink );
  doCycleSection( bundle, sink );
  doExplanationSection( bundle, sink );
  sink.section1_();
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: apache/maven-surefire

sink.unknown( "script", new Object[]{ HtmlMarkup.TAG_TYPE_END }, null );
sink.section1();
sink.sectionTitle1();
sink.text( bundle.getReportHeader() );

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

private void extract( DecorationModel decoration, Sink sink, Locale locale )
{
  sink.head();
  sink.title();
  sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.title" ) );
  sink.title_();
  sink.head_();
  sink.body();
  sink.section1();
  sink.sectionTitle1();
  sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.section.title" ) );
  sink.sectionTitle1_();
  sink.paragraph();
  sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.description" ) );
  sink.paragraph_();
  for ( Menu menu : decoration.getMenus() )
  {
    sink.section3();
    sink.sectionTitle3();
    sink.text( menu.getName() );
    sink.sectionTitle3_();
    sink.horizontalRule();
    extractItems( menu.getItems(), sink );
    sink.section3_();
  }
  sink.section1_();
  sink.body_();
}

相关文章