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

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

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

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 );

相关文章