info.bliki.wiki.model.WikiModel.getRawWikiContent()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(114)

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

WikiModel.getRawWikiContent介绍

暂无

代码示例

代码示例来源:origin: edu.illinois.cs.cogcomp/wikipediaAPI-multilingual

  1. /**
  2. * Get the raw wiki text for the given namespace and article name. This model
  3. * implementation uses a Derby database to cache downloaded wiki template
  4. * texts.
  5. *
  6. * @param namespace
  7. * the namespace of this article
  8. * @param templateName
  9. * the name of the template
  10. * @param templateParameters
  11. * if the namespace is the <b>Template</b> namespace, the current
  12. * template parameters are stored as <code>String</code>s in this map
  13. *
  14. * @return <code>null</code> if no content was found
  15. *
  16. * @see info.bliki.api.User#queryContent(String[])
  17. */
  18. @Override
  19. public String getRawWikiContent(String namespace, String articleName, Map<String, String> templateParameters) {
  20. String result = super.getRawWikiContent(namespace, articleName, templateParameters);
  21. if (result != null) {
  22. // found magic word template
  23. return result;
  24. }
  25. return null;
  26. }

代码示例来源:origin: edu.illinois.cs.cogcomp/wikipediaAPI

  1. /**
  2. * Get the raw wiki text for the given namespace and article name. This model
  3. * implementation uses a Derby database to cache downloaded wiki template
  4. * texts.
  5. *
  6. * @param namespace
  7. * the namespace of this article
  8. * @param templateName
  9. * the name of the template
  10. * @param templateParameters
  11. * if the namespace is the <b>Template</b> namespace, the current
  12. * template parameters are stored as <code>String</code>s in this map
  13. *
  14. * @return <code>null</code> if no content was found
  15. *
  16. * @see info.bliki.api.User#queryContent(String[])
  17. */
  18. @Override
  19. public String getRawWikiContent(String namespace, String articleName, Map<String, String> templateParameters) {
  20. String result = super.getRawWikiContent(namespace, articleName, templateParameters);
  21. if (result != null) {
  22. // found magic word template
  23. return result;
  24. }
  25. return null;
  26. }

代码示例来源:origin: org.openfuxml/ofx-wiki

  1. String result = super.getRawWikiContent(namespace, articleName, map);
  2. if (result != null) {
  3. return result;

相关文章