本文整理了Java中org.apache.maven.doxia.sink.Sink.table()
方法的一些代码示例,展示了Sink.table()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.table()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:table
暂无
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-syntax-doxia
@Override
public void beginTable(Map<String, String> parameters)
{
this.sink.table();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-confluence
/** {@inheritDoc} */
public void before( Sink sink )
{
sink.table();
sink.tableRows( getJustification(), false );
}
代码示例来源: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: 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_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-project-info-reports-plugin
sink.table();
sink.table();
代码示例来源:origin: mojohaus/versions-maven-plugin
protected void renderPropertySummaryTable( Map<Property, PropertyVersions> map )
{
sink.table();
renderPropertySummaryTableHeader();
for ( Map.Entry<Property, PropertyVersions> entry : map.entrySet() )
{
renderPropertySummaryTableRow( entry.getKey(), entry.getValue() );
}
renderPropertySummaryTableHeader();
sink.table_();
}
代码示例来源: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
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: org.codehaus.mojo/versions-maven-plugin
protected void renderPropertySummaryTable( Map<Property, PropertyVersions> map )
{
sink.table();
renderPropertySummaryTableHeader();
for ( Map.Entry<Property, PropertyVersions> entry : map.entrySet() )
{
renderPropertySummaryTableRow( entry.getKey(), entry.getValue() );
}
renderPropertySummaryTableHeader();
sink.table_();
}
代码示例来源: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.doxia/doxia-module-twiki
/** {@inheritDoc} */
final void before( final Sink sink )
{
sink.table();
sink.tableRows( getJustification(), false );
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleTableStart( Sink sink, SinkEventAttributeSet attribs )
{
final Object frame = attribs.getAttribute( SimplifiedDocbookMarkup.FRAME_ATTRIBUTE );
if ( frame != null )
{
attribs.addAttribute( SimplifiedDocbookMarkup.FRAME_ATTRIBUTE,
DocbookUtils.doxiaTableFrameAttribute( frame.toString() ) );
}
sink.table( attribs );
parent.push( SimplifiedDocbookMarkup.TABLE_TAG.toString() );
}
代码示例来源: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
protected void renderDependencySummaryTable( Map<Dependency, ArtifactVersions> map, boolean includeScope,
boolean includeClassifier, boolean includeType )
{
sink.table();
renderDependencySummaryTableHeader( includeScope, includeClassifier, includeType );
for ( Map.Entry<Dependency, ArtifactVersions> entry : map.entrySet() )
{
renderDependencySummaryTableRow( entry.getKey(), entry.getValue(), includeScope, includeClassifier,
includeType );
}
renderDependencySummaryTableHeader( includeScope, includeClassifier, includeType );
sink.table_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin
sink.sectionTitle1_();
sink.table();
sink.tableRow();
sink.tableHeaderCell();
代码示例来源:origin: mojohaus/versions-maven-plugin
protected void renderDependencySummaryTable( Map<Dependency, ArtifactVersions> map, boolean includeScope,
boolean includeClassifier, boolean includeType )
{
sink.table();
renderDependencySummaryTableHeader( includeScope, includeClassifier, includeType );
for ( Map.Entry<Dependency, ArtifactVersions> entry : map.entrySet() )
{
renderDependencySummaryTableRow( entry.getKey(), entry.getValue(), includeScope, includeClassifier,
includeType );
}
renderDependencySummaryTableHeader( includeScope, includeClassifier, includeType );
sink.table_();
}
代码示例来源: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: mojohaus/license-maven-plugin
protected void renderThirdPartySummaryTable( Collection<ThirdPartyDetails> collection, boolean includeScope,
boolean includeClassifier, boolean includeType )
{
sink.table();
renderThirdPartySummaryTableHeader( includeScope, includeClassifier, includeType );
for ( ThirdPartyDetails details : collection )
{
renderThirdPartySummaryTableRow( details, includeScope, includeClassifier, includeType );
}
renderThirdPartySummaryTableHeader( includeScope, includeClassifier, includeType );
sink.table_();
}
代码示例来源: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_();
}
内容来源于网络,如有侵权,请联系作者删除!