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

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

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

Sink.tableRow_介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven.doxia/doxia-module-confluence

/** {@inheritDoc} */
  public  void after(  Sink sink )
  {
    sink.tableRow_();
  }
}

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

@Override
protected void endScenario()
{
 sink.tableRow_();
}

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

@Override
protected void endScenario()
{
 sink.tableRow_();
}

代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-syntax-doxia

@Override
public void endTableRow(Map<String, String> parameters)
{
  this.sink.tableRow_();
}

代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki

/** {@inheritDoc} */
  final void after( final Sink sink )
  {
    sink.tableRow_();
  }
}

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

private void tableRow( boolean fullRow, String[] content )
{
  sink.tableRow();
  int count = fullRow ? content.length : ( content.length - 1 );
  for ( int i = 0; i < count; i++ )
  {
    tableCell( content[i] );
  }
  sink.tableRow_();
}

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

private void tableHeader( String[] content, String[] titles )
{
  sink.tableRow();
  if ( content != null )
  {
    if ( titles != null && content.length != titles.length )
    {
      // CHECKSTYLE_OFF: LineLength
      throw new IllegalArgumentException( "Length of title array must equal the length of the content array" );
      // CHECKSTYLE_ON: LineLength
    }
    for ( int i = 0; i < content.length; i++ )
    {
      if ( titles != null )
      {
        tableHeaderCell( content[i], titles[i] );
      }
      else
      {
        tableHeaderCell( content[i] );
      }
    }
  }
  sink.tableRow_();
}

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

private void renderBuildJob( BuildJob buildJob, Locale locale )
{
  Sink sink = getSink();
  sink.tableRow();
  StringBuilder buffer = new StringBuilder();
  if ( !StringUtils.isEmpty( buildJob.getName() ) && !StringUtils.isEmpty( buildJob.getDescription() ) )
  {
    buffer.append( buildJob.getName() );
    buffer.append( " : " );
    buffer.append( buildJob.getDescription() );
  }
  else
  {
    buffer.append( buildJob.getProject() );
  }
  sinkCell( sink, buffer.toString() );
  // FIXME image
  sinkCell( sink, buildJob.getResult() );
  sinkCell( sink, secondsFormat.format( buildJob.getTime() ) );
  sinkCell( sink, buildJob.getFailureMessage() );
  sink.tableRow_();
}

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

void renderIndexRow(final int counter, final String label, final String id)
{
 sink.tableRow();
 sink.tableCell();
 sink.text(String.valueOf(counter));
 sink.tableCell_();
 sink.tableCell();
 renderInPageLink(label, id);
 sink.tableCell_();
 sink.tableRow_();
}

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

void renderIndexRow(final int counter, final String label, final String id)
{
 sink.tableRow();
 sink.tableCell();
 sink.text(String.valueOf(counter));
 sink.tableCell_();
 sink.tableCell();
 renderInPageLink(label, id);
 sink.tableCell_();
 sink.tableRow_();
}

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

private void tableRowWithLink( String[] content )
{
  sink.tableRow();
  for ( int ctr = 0; ctr < content.length; ctr++ )
  {
    String cell = content[ctr];
    sink.tableCell();
    if ( StringUtils.isEmpty( cell ) )
    {
      sink.text( "-" );
    }
    else if ( ctr == content.length - 1 && cell.length() > 0 )
    {
      sink.link( cell );
      sink.text( cell );
      sink.link_();
    }
    else
    {
      sink.text( cell );
    }
    sink.tableCell_();
  }
  sink.tableRow_();
}

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

@Override
protected void renderTableStart(final ScenarioTestDoc scenarioRepresentant)
{
 sink.table();
 sink.tableRow();
 renderRowNumberHeader();
 renderJunitHeader();
 renderScenarioHeader();
 renderCategoriesHeader();
 renderTestCaseHeader();
 sink.tableRow_();
}

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

@Override
protected void renderTableStart(final ScenarioTestDoc scenarioRepresentant)
{
 sink.table();
 sink.tableRow();
 renderRowNumberHeader();
 renderJunitHeader();
 renderScenarioHeader();
 renderCategoriesHeader();
 renderTestCaseHeader();
 sink.tableRow_();
}

代码示例来源: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/maven-testdoc-report-plugin

void renderIndexTableStart()
{
 sink.table();
 sink.tableRow();
 sink.tableHeaderCell(messages.getLabel("report.table.header.counter.width"));
 final String topicLabel = messages.getLabel("report.table.header.counter");
 sink.text(topicLabel);
 sink.tableHeaderCell_();
 sink.tableHeaderCell();
 final String valueLabel = messages.getLabel("report.table.header.index");
 sink.text(valueLabel);
 sink.tableHeaderCell_();
 sink.tableRow_();
}

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

void renderIndexTableStart()
{
 sink.table();
 sink.tableRow();
 sink.tableHeaderCell(messages.getLabel("report.table.header.counter.width"));
 final String topicLabel = messages.getLabel("report.table.header.counter");
 sink.text(topicLabel);
 sink.tableHeaderCell_();
 sink.tableHeaderCell();
 final String valueLabel = messages.getLabel("report.table.header.index");
 sink.text(valueLabel);
 sink.tableHeaderCell_();
 sink.tableRow_();
}

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

protected void renderPropertySummaryTableHeader()
  {
    sink.tableRow();
    sinkHeaderCellText( getText( "report.status" ) );
    sinkHeaderCellText( getText( "report.property" ) );
    sinkHeaderCellText( getText( "report.currentVersion" ) );
    sinkHeaderCellText( getText( "report.nextVersion" ) );
    sinkHeaderCellText( getText( "report.nextIncremental" ) );
    sinkHeaderCellText( getText( "report.nextMinor" ) );
    sinkHeaderCellText( getText( "report.nextMajor" ) );
    sink.tableRow_();
  }
}

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

private void processSingleRuleViolation( RuleViolation ruleViolation, PmdFileInfo fileInfo )
{
  sink.tableRow();
  sink.tableCell();
  sink.text( ruleViolation.getDescription() );
  sink.tableCell_();
  if ( this.renderRuleViolationPriority )
  {
    sink.tableCell();
    sink.text( String.valueOf( ruleViolation.getRule().getPriority().getPriority() ) );
    sink.tableCell_();
  }
  sink.tableCell();
  int beginLine = ruleViolation.getBeginLine();
  outputLineLink( beginLine, fileInfo );
  int endLine = ruleViolation.getEndLine();
  if ( endLine != beginLine )
  {
    sink.text( "&#x2013;" );
    outputLineLink( endLine, fileInfo );
  }
  sink.tableCell_();
  sink.tableRow_();
}

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

private void processSingleProcessingError( ProcessingError error ) throws IOException
{
  String filename = error.getFile();
  PmdFileInfo fileInfo = determineFileInfo( filename );
  filename = makeFileSectionName( shortenFilename( filename, fileInfo ), fileInfo );
  sink.tableRow();
  sink.tableCell();
  sink.text( filename );
  sink.tableCell_();
  sink.tableCell();
  sink.text( error.getMsg() );
  sink.verbatim( null );
  sink.rawText( error.getDetail() );
  sink.verbatim_();
  sink.tableCell_();
  sink.tableRow_();
}

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

/**
 * Generate the legend table
 *
 * @param locale
 * @param sink
 */
private void generateLegend( Locale locale, Sink sink )
{
  sink.table();
  sink.tableCaption();
  sink.bold();
  sink.text( getI18nString( locale, "legend" ) );
  sink.bold_();
  sink.tableCaption_();
  sink.tableRow();
  sink.tableCell();
  iconError( locale, sink );
  sink.tableCell_();
  sink.tableCell();
  sink.text( getI18nString( locale, "legend.different" ) );
  sink.tableCell_();
  sink.tableRow_();
  sink.table_();
}

相关文章