本文整理了Java中org.apache.maven.doxia.sink.Sink.author()
方法的一些代码示例,展示了Sink.author()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.author()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:author
暂无
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleArticleInfoStartTags( String name, Sink sink, SinkEventAttributeSet attribs )
{
if ( !ARTICLEINFO_ELEMENTS.contains( name ) )
{
ignore = true;
return; // TODO: other meta data are ignored, implement!
}
if ( name.equals( SimplifiedDocbookMarkup.TITLE_TAG.toString() ) )
{
sink.title( attribs );
}
else if ( name.equals( SimplifiedDocbookMarkup.CORPAUTHOR_TAG.toString() ) )
{
sink.author( attribs );
}
else if ( name.equals( SimplifiedDocbookMarkup.DATE_TAG.toString() ) )
{
sink.date( attribs );
}
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-xdoc
private void handleMetaStart( XmlPullParser parser, Sink sink, SinkEventAttributeSet attribs )
{
String name = parser.getAttributeValue( null, Attribute.NAME.toString() );
String content = parser.getAttributeValue( null, Attribute.CONTENT.toString() );
if ( "author".equals( name ) )
{
sink.author( null );
sink.text( content );
sink.author_();
}
else if ( "date".equals( name ) )
{
sink.date( null );
sink.text( content );
sink.date_();
}
else
{
sink.unknown( "meta", new Object[]{ Integer.valueOf( TAG_TYPE_SIMPLE ) }, attribs );
}
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-xdoc
sink.author( attribs );
内容来源于网络,如有侵权,请联系作者删除!