本文整理了Java中org.apache.maven.doxia.sink.Sink.sectionTitle_()
方法的一些代码示例,展示了Sink.sectionTitle_()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.sectionTitle_()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:sectionTitle_
暂无
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-syntax-doxia
@Override
public void endHeader(HeaderLevel level, String id, Map<String, String> parameters)
{
// Doxia has only 5 section levels!
int levelAsInt = (level.getAsInt() < 6) ? level.getAsInt() : 5;
this.sink.sectionTitle_(levelAsInt);
}
代码示例来源: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: org.apache.maven.plugins/maven-checkstyle-plugin
sink.sectionTitle( Sink.SECTION_LEVEL_2, attrs );
sink.text( file );
sink.sectionTitle_( Sink.SECTION_LEVEL_2 );
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleTitleEnd( Sink sink )
{
if ( isParent( SimplifiedDocbookMarkup.TABLE_TAG.toString() )
|| isParent( SimplifiedDocbookMarkup.INFORMALTABLE_TAG.toString() ) )
{
sink.tableCaption_();
}
else if ( isParent( SimplifiedDocbookMarkup.SECTION_TAG.toString() ) )
{
sink.sectionTitle_( level );
}
else if ( isParent( SimplifiedDocbookMarkup.ARTICLE_TAG.toString() ) )
{
sink.title_();
}
else
{
sink.bold_();
}
}
内容来源于网络,如有侵权,请联系作者删除!