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

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

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

Sink.paragraph介绍

暂无

代码示例

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

/** {@inheritDoc} */
final void before( final Sink sink )
{
  sink.paragraph();
}

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

@Override
protected void renderTestDocUutReportLinks(final Type type,
  final ExternalReportReferences reports)
{
 sink.paragraph();
 final UutLinkRenderer linkRenderer =
   new UutLinkRenderer(sink, messages, type);
 for (final ExternalReport report : reports.getUutReports())
 {
  linkRenderer.renderTestMethodLink(report);
 }
 sink.paragraph_();
}

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

@Override
protected void renderTestDocUutReportLinks(final Type type,
  final ExternalReportReferences reports)
{
 sink.paragraph();
 final UutLinkRenderer linkRenderer =
   new UutLinkRenderer(sink, messages, type);
 for (final ExternalReport report : reports.getUutReports())
 {
  linkRenderer.renderTestMethodLink(report);
 }
 sink.paragraph_();
}

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

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

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

protected void reportBody(ReportTimeReporter reporterWithResults, API oldAPI, API newAPI, Sink sink,
    ResourceBundle messages) {
  sink.paragraph();
  sink.text(getDescription(messages, oldAPI, newAPI));
  sink.paragraph_();
  reportDifferences(reporterWithResults.reportsBySeverity.get(DifferenceSeverity.BREAKING), sink, messages,
      "report.revapi.changes.breaking");
  reportDifferences(reporterWithResults.reportsBySeverity.get(DifferenceSeverity.POTENTIALLY_BREAKING), sink,
      messages, "report.revapi.changes.potentiallyBreaking");
  reportDifferences(reporterWithResults.reportsBySeverity.get(DifferenceSeverity.NON_BREAKING), sink, messages,
      "report.revapi.changes.nonBreaking");
}

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

/** {@inheritDoc} */
public  void before(  Sink sink )
{
  if ( this.generateParagraphTags )
  {
    sink.paragraph();
  }
}

代码示例来源:origin: bsorrentino/maven-confluence-plugin

/**
 * Create the documentation to provide an developer access with a
 * <code>Git</code> SCM. For example, generate the following command line:
 * <p>
 * git clone repo
 * </p>
 *
 * @param gitRepo
 */
private void developerAccessGit(GitScmProviderRepository gitRepo) {
  sink.paragraph();
  linkPatternedText(getI18nString("devaccess.git.intro"));
  sink.paragraph_();
  gitClone(gitRepo.getPushUrl());
}

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

private void handleParaStart( Sink sink, SinkEventAttributeSet attribs )
{
  if ( !isParent( SimplifiedDocbookMarkup.CAPTION_TAG.toString() )
      && ! isParent( SimplifiedDocbookMarkup.LISTITEM_TAG.toString() ) )
  {
    sink.paragraph( attribs );
  }
}

代码示例来源:origin: bsorrentino/maven-confluence-plugin

/**
 * Create the documentation to provide an anonymous access with a
 * <code>Git</code> SCM. For example, generate the following command line:
 * <p>
 * git clone uri
 * </p>
 *
 * @param gitRepo
 */
private void anonymousAccessGit(GitScmProviderRepository gitRepo) {
  sink.paragraph();
  linkPatternedText(getI18nString("anonymousaccess.git.intro"));
  sink.paragraph_();
  gitClone(gitRepo.getFetchUrl());
}

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

/**
 * Create the documentation to provide an anonymous access with a <code>Git</code> SCM. For example, generate
 * the following command line:
 * <p>
 * git clone uri
 * </p>
 *
 * @param gitRepo
 */
private void anonymousAccessGit( GitScmProviderRepository gitRepo )
{
  sink.paragraph();
  linkPatternedText( getI18nString( "anonymousaccess.git.intro" ) );
  sink.paragraph_();
  gitClone( gitRepo.getFetchUrl() );
}

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

/**
 * Create the documentation to provide an anonymous access with a <code>Mercurial</code> SCM. For example,
 * generate the following command line:
 * <p>
 * hg clone uri
 * </p>
 *
 * @param hgRepo
 */
private void anonymousAccessMercurial( HgScmProviderRepository hgRepo )
{
  sink.paragraph();
  linkPatternedText( getI18nString( "anonymousaccess.hg.intro" ) );
  sink.paragraph_();
  verbatimText( "$ hg clone " + hgRepo.getURI() );
}

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

/**
 * Create the documentation to provide an developer access with a <code>Git</code> SCM. For example, generate
 * the following command line:
 * <p>
 * git clone repo
 * </p>
 *
 * @param gitRepo
 */
private void developerAccessGit( GitScmProviderRepository gitRepo )
{
  sink.paragraph();
  linkPatternedText( getI18nString( "devaccess.git.intro" ) );
  sink.paragraph_();
  gitClone( gitRepo.getPushUrl() );
}

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

/**
 * Create the documentation to provide an developer access with a <code>Mercurial</code> SCM. For example,
 * generate the following command line:
 * <p>
 * hg clone repo
 * </p>
 *
 * @param hgRepo
 */
private void developerAccessMercurial( HgScmProviderRepository hgRepo )
{
  sink.paragraph();
  linkPatternedText( getI18nString( "devaccess.hg.intro" ) );
  sink.paragraph_();
  verbatimText( "$ hg clone " + hgRepo.getURI() );
}

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

/**
 * Writes a toplink element.
 *
 * @param sink The sink to consume the event.
 */
private void writeTopLink( Sink sink )
{
  SinkEventAttributeSet atts = new SinkEventAttributeSet();
  atts.addAttribute( SinkEventAttributeSet.ALIGN, "right" );
  sink.paragraph( atts );
  sink.link( "#top" );
  sink.text( "[top]" );
  sink.link_();
  sink.paragraph_();
}

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

private void constructHotLinks( Sink sink, LocalizedProperties bundle )
{
  if ( !testSuites.isEmpty() )
  {
    sink.paragraph();
    sink.text( "[" );
    sinkLink( sink, bundle.getReportLabelSummary(), "#Summary" );
    sink.text( "]" );
    sink.text( " [" );
    sinkLink( sink, bundle.getReportLabelPackageList(), "#Package_List" );
    sink.text( "]" );
    sink.text( " [" );
    sinkLink( sink, bundle.getReportLabelTestCases(), "#Test_Cases" );
    sink.text( "]" );
    sink.paragraph_();
  }
}

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

private void constructHotLinks( Sink sink, LocalizedProperties bundle )
{
  if ( !testSuites.isEmpty() )
  {
    sink.paragraph();
    sink.text( "[" );
    sinkLink( sink, bundle.getReportLabelSummary(), "#Summary" );
    sink.text( "]" );
    sink.text( " [" );
    sinkLink( sink, bundle.getReportLabelPackageList(), "#Package_List" );
    sink.text( "]" );
    sink.text( " [" );
    sinkLink( sink, bundle.getReportLabelTestCases(), "#Test_Cases" );
    sink.text( "]" );
    sink.paragraph_();
  }
}

相关文章