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

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

本文整理了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-docbook-simple

private void handleAnchorStart( Sink sink, SinkEventAttributeSet attribs  )
{
  final Object id = attribs.getAttribute( SimplifiedDocbookMarkup.ID_ATTRIBUTE );
  if ( id != null )
  {
    sink.anchor( id.toString(), attribs );
  }
}

代码示例来源: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.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.anchor( id );
  sink.bold();
  sink.text( artifactName );
sink.anchor( id );
sink.bold();
sink.text( id );

代码示例来源: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: 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.jvnet.hudson.plugins/jdepend

public void doExplanationSection( ResourceBundle bundle, Sink sink )
  sink.anchor( bundle.getString( "report.explanations" ) ); //$NON-NLS-1$
  sink.anchor_();

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

super.sink.anchor( HtmlTools.encodeId( anchor ) );
super.sink.anchor_();

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

sink.anchor( jdpackage.getPackageName() );
sink.anchor_();

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

sink.section1();
sink.sectionTitle1();
sink.anchor( "top" );
sink.text( faqs.getTitle() );
sink.anchor_();
    sink.anchor( faq.getId() );

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

public void doSummarySection( ResourceBundle bundle, Sink sink )
  sink.anchor( bundle.getString( "report.summary.text" ) ); //$NON-NLS-1$
  sink.anchor_();

相关文章