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

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

本文整理了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 handleArticleInfoEndTags( String name, Sink sink )
{
  if ( !ARTICLEINFO_ELEMENTS.contains( name ) )
  {
    ignore = false;
    return; // TODO: other meta data are ignored, implement!
  }
  if ( name.equals( SimplifiedDocbookMarkup.TITLE_TAG.toString() ) )
  {
    sink.title_();
  }
  else if ( name.equals( SimplifiedDocbookMarkup.CORPAUTHOR_TAG.toString() ) )
  {
    sink.author_();
  }
  else if ( name.equals( SimplifiedDocbookMarkup.DATE_TAG.toString() ) )
  {
    sink.date_();
  }
}

代码示例来源: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_();

相关文章