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

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

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

Sink.anchor_介绍

暂无

代码示例

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

/** {@inheritDoc} */
  public  void traverse(  Sink sink )
  {
    sink.anchor( name );
    sink.anchor_();
  }
}

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

/** {@inheritDoc}*/
public final void traverse( final Sink sink )
{
  sink.anchor( name );
  sink.anchor_();
}

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

void renderAnchor(final String id)
{
 final String normalized = normalizeKey(id);
 sink.anchor(normalized);
 sink.anchor_();
}

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

void renderAnchor(final String id)
{
 final String normalized = normalizeKey(id);
 sink.anchor(normalized);
 sink.anchor_();
}

代码示例来源: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: 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.doxia/doxia-module-xdoc

private void handleSectionStart( int level, Sink sink, SinkEventAttributeSet attribs, XmlPullParser parser )
{
  consecutiveSections( level, sink );
  Object id = attribs.getAttribute( Attribute.ID.toString() );
  if ( id != null )
  {
    sink.anchor( id.toString() );
    sink.anchor_();
  }
  sink.section( level, attribs );
  sink.sectionTitle( level, null );
  sink.text( HtmlTools.unescapeHTML( parser.getAttributeValue( null, Attribute.NAME.toString() ) ) );
  sink.sectionTitle_( level );
}

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

sink.text( artifactName );
  sink.bold_();
  sink.anchor_();
  sink.paragraph_();
sink.text( id );
sink.bold_();
sink.anchor_();
sink.paragraph_();

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

sink.anchor_();

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

sink.anchor_();

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

private void renderIndexOfIndexes(final ExportMultiIndex index)
{
 final InformationFilter filter = exporter.getInformationFilter();
 if (filter.isShowIndexOfIndices() && !index.isEmpty())
 {
  sink.section2();
  sink.anchor("indexOfIndexes");
  sink.anchor_();
  sink.sectionTitle2();
  sink.text(messages.getLabel("report.indexOfIndexes"));
  sink.sectionTitle2_();
  helper.renderIndexTableStart();
  int counter = 1;
  for (final ExportIndex exportIndex : index.getIndexes())
  {
   if (!exportIndex.isEmpty())
   {
    final String name = exportIndex.getSectionName();
    final String label = messages.getLabel(name);
    helper.renderIndexRow(counter, label);
    counter++;
   }
  }
  helper.renderIndexTableEnd();
  sink.section2_();
 }
}

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

sink.anchor( "top" );
sink.text( faqs.getTitle() );
sink.anchor_();
sink.sectionTitle1_();
    sink.anchor_();
    sink.definedTerm_();

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

sink.anchor_();

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

private void renderIndexOfIndexes(final ExportMultiIndex index)
{
 final InformationFilter filter = exporter.getInformationFilter();
 if (filter.isShowIndexOfIndices() && !index.isEmpty())
 {
  sink.section2();
  sink.anchor("indexOfIndexes");
  sink.anchor_();
  sink.sectionTitle2();
  sink.text(messages.getLabel("report.indexOfIndexes"));
  sink.sectionTitle2_();
  helper.renderIndexTableStart();
  int counter = 1;
  for (final ExportIndex exportIndex : index.getIndexes())
  {
   if (!exportIndex.isEmpty())
   {
    final String name = exportIndex.getSectionName();
    final String label = messages.getLabel(name);
    helper.renderIndexRow(counter, label);
    counter++;
   }
  }
  helper.renderIndexTableEnd();
  sink.section2_();
 }
}

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

super.sink.anchor_();

相关文章