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

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

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

Sink.sectionTitle介绍

暂无

代码示例

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

  1. @Override
  2. public void beginHeader(HeaderLevel level, String id, Map<String, String> parameters)
  3. {
  4. // Doxia has only 5 section levels!
  5. int levelAsInt = (level.getAsInt() < 6) ? level.getAsInt() : 5;
  6. this.sink.section(levelAsInt, null);
  7. this.sink.sectionTitle(levelAsInt, null);
  8. // Remember the header level for endSection() handling.
  9. this.headerLevel = level;
  10. }

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

  1. private void handleSectionStart( int level, Sink sink, SinkEventAttributeSet attribs, XmlPullParser parser )
  2. {
  3. consecutiveSections( level, sink );
  4. Object id = attribs.getAttribute( Attribute.ID.toString() );
  5. if ( id != null )
  6. {
  7. sink.anchor( id.toString() );
  8. sink.anchor_();
  9. }
  10. sink.section( level, attribs );
  11. sink.sectionTitle( level, null );
  12. sink.text( HtmlTools.unescapeHTML( parser.getAttributeValue( null, Attribute.NAME.toString() ) ) );
  13. sink.sectionTitle_( level );
  14. }

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

  1. SinkEventAttributes attrs = new SinkEventAttributeSet();
  2. attrs.addAttribute( SinkEventAttributes.ID, file.replace( '/', '.' ) );
  3. sink.sectionTitle( Sink.SECTION_LEVEL_2, attrs );
  4. sink.text( file );
  5. sink.sectionTitle_( Sink.SECTION_LEVEL_2 );

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

  1. private void handleTitleStart( Sink sink, SinkEventAttributeSet attribs )
  2. {
  3. if ( isParent( SimplifiedDocbookMarkup.TABLE_TAG.toString() )
  4. || isParent( SimplifiedDocbookMarkup.INFORMALTABLE_TAG.toString() ) )
  5. {
  6. sink.tableCaption( attribs );
  7. }
  8. else if ( isParent( SimplifiedDocbookMarkup.ARTICLE_TAG.toString() ) )
  9. {
  10. sink.title( attribs );
  11. }
  12. else if ( isParent( SimplifiedDocbookMarkup.SECTION_TAG.toString() ) )
  13. {
  14. sink.sectionTitle( level, attribs );
  15. }
  16. else
  17. {
  18. sink.bold();
  19. }
  20. }

相关文章