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

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

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

Sink.lineBreak介绍

暂无

代码示例

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

/** {@inheritDoc} */
  public void traverse( Sink sink )
  {
    sink.lineBreak();
  }
}

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

private static void sinkLineBreak( Sink sink )
{
  sink.lineBreak();
}

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

private static void sinkLineBreak( Sink sink )
{
  sink.lineBreak();
}

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

public void doCycleSection( ResourceBundle bundle, Sink sink )
{
  sink.anchor( bundle.getString( "report.cycles.text" ) ); //$NON-NLS-1$
  sink.anchor_();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.cycles.title" ) ); //$NON-NLS-1$
  sink.sectionTitle1_();
  doSectionLinks( bundle, sink );
  sink.lineBreak();
  sink.lineBreak();
  doCycles( bundle, sink );
}

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

/**
 * {@inheritDoc}
 */
public boolean visit( DependencyNode node )
{
  indent( node );
  sink.text( node.toNodeString() );
  sink.lineBreak();
  depth++;
  return true;
}

代码示例来源:origin: net.sf.oqt/oqt-maven-plugin

private void addTitleLink(final String title, final Sink sink) {
  final SinkEventAttributes attributes = new SinkEventAttributeSet();
  attributes.addAttribute(SinkEventAttributes.HREF, "#" + title.replace(" ", "_"));
  sink.link("#" + title.replace(" ", "_"), attributes);
  sink.text(title);
  sink.link_();
  sink.lineBreak();
}

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

/** {@inheritDoc} */
protected void handleComment( XmlPullParser parser, Sink sink )
  throws XmlPullParserException
{
  final String text = parser.getText();
  if ( "PB".equals( text.trim() ) )
  {
    sink.pageBreak();
  }
  else if ( "HR".equals( text.trim() ) )
  {
    sink.horizontalRule();
  }
  else if ( "LB".equals( text.trim() ) )
  {
    sink.lineBreak();
  }
  else if ( "anchor_end".equals( text.trim() ) )
  {
    sink.anchor_();
  }
  else
  {
    if ( isEmitComments() )
    {
      sink.comment( text );
    }
  }
}

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

public void doPackagesSection( ResourceBundle bundle, Sink sink )
{
  sink.anchor( bundle.getString( "report.packages.text" ) ); //$NON-NLS-1$
  sink.anchor_();
  sink.sectionTitle1();
  sink.text( bundle.getString( "report.packages.title" ) ); //$NON-NLS-1$
  sink.sectionTitle1_();
  doSectionLinks( bundle, sink );
  sink.lineBreak();
  doPackage( bundle, sink );
}

代码示例来源:origin: ru.yandex.qatools.allure/allure-maven-plugin

/**
 * Render allure report page in project-reports.html.
 */
protected void render(Sink sink, String title) {
  sink.head();
  sink.title();
  sink.text(title);
  sink.title_();
  sink.head_();
  sink.body();
  sink.lineBreak();
  Path indexHtmlFile = Paths.get(reportDirectory, "index.html");
  String relativePath = Paths.get(reportingOutputDirectory)
      .relativize(indexHtmlFile).toString();
  sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
      relativePath));
  sink.link(relativePath);
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源:origin: allure-framework/allure-maven

/**
 * Render allure report page in project-reports.html.
 */
protected void render(Sink sink, String title) {
  sink.head();
  sink.title();
  sink.text(title);
  sink.title_();
  sink.head_();
  sink.body();
  sink.lineBreak();
  Path indexHtmlFile = Paths.get(getReportDirectory(), "index.html");
  String relativePath = Paths.get(reportingOutputDirectory)
      .relativize(indexHtmlFile).toString();
  sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
      relativePath));
  sink.link(relativePath);
  sink.body_();
  sink.flush();
  sink.close();
}

代码示例来源: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: org.apache.maven.plugins/maven-project-info-reports-plugin

sink.lineBreak();

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

sink.lineBreak();
      sink.lineBreak();

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

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_();
}

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

private void renderScreenshot(final String path, final String type) {
    SinkEventAttributeSet cellAttr = new SinkEventAttributeSet();
    cellAttr.addAttribute(SinkEventAttributes.ALIGN, "center");

    SinkEventAttributeSet smallImagesAttr = new SinkEventAttributeSet();
    smallImagesAttr.addAttribute(SinkEventAttributes.HEIGHT, "200");
    smallImagesAttr.addAttribute(SinkEventAttributes.HSPACE, "20");
    smallImagesAttr.addAttribute(SinkEventAttributes.VSPACE, "10");
    smallImagesAttr.addAttribute(SinkEventAttributes.BORDER, "1");
    smallImagesAttr.addAttribute(SinkEventAttributes.ALT, type);

    sink.tableCell(cellAttr);

    sink.link(path);
    sink.figureGraphics(path, smallImagesAttr);
    sink.link_();

    sink.lineBreak();

    sink.text(type);

    sink.tableCell_();
  }
}

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

sink.lineBreak();

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

sink.lineBreak();

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

sink.lineBreak();

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

sink.lineBreak();

相关文章