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

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

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

Sink.section2介绍

暂无

代码示例

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

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: 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

private void renderPropertyDetail( Property property, PropertyVersions versions )
{
  sink.section2();
  sink.sectionTitle2();
  sink.text( "${" + property.getName() + "" );
  sink.sectionTitle2_();
  renderPropertyDetailTable( property, versions );
  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: 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: org.apache.maven.doxia/doxia-module-xdoc

/**
   * Open missing h4, h5, h6 sections.
   */
  private void openMissingSections( int newLevel, Sink sink )
  {
    while ( getSectionLevel() < newLevel - 1 )
    {
      setSectionLevel( getSectionLevel() + 1 );

      if ( getSectionLevel() == Sink.SECTION_LEVEL_5 )
      {
        sink.section5();
      }
      else if ( getSectionLevel() == Sink.SECTION_LEVEL_4 )
      {
        sink.section4();
      }
      else if ( getSectionLevel() == Sink.SECTION_LEVEL_3 )
      {
        sink.section3();
      }
      else if ( getSectionLevel() == Sink.SECTION_LEVEL_2 )
      {
        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: 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_();
}

相关文章