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

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

本文整理了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

/**
 * Get the raw wiki text for the given namespace and article name. This model
 * implementation uses a Derby database to cache downloaded wiki template
 * texts.
 * 
 * @param namespace
 *          the namespace of this article
 * @param templateName
 *          the name of the template
 * @param templateParameters
 *          if the namespace is the <b>Template</b> namespace, the current
 *          template parameters are stored as <code>String</code>s in this map
 * 
 * @return <code>null</code> if no content was found
 * 
 * @see info.bliki.api.User#queryContent(String[])
 */
@Override
public String getRawWikiContent(String namespace, String articleName, Map<String, String> templateParameters) {
  String result = super.getRawWikiContent(namespace, articleName, templateParameters);
  if (result != null) {
    // found magic word template
    return result;
  }
  return null;
}

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

/**
 * Get the raw wiki text for the given namespace and article name. This model
 * implementation uses a Derby database to cache downloaded wiki template
 * texts.
 * 
 * @param namespace
 *          the namespace of this article
 * @param templateName
 *          the name of the template
 * @param templateParameters
 *          if the namespace is the <b>Template</b> namespace, the current
 *          template parameters are stored as <code>String</code>s in this map
 * 
 * @return <code>null</code> if no content was found
 * 
 * @see info.bliki.api.User#queryContent(String[])
 */
@Override
public String getRawWikiContent(String namespace, String articleName, Map<String, String> templateParameters) {
  String result = super.getRawWikiContent(namespace, articleName, templateParameters);
  if (result != null) {
    // found magic word template
    return result;
  }
  return null;
}

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

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

相关文章

微信公众号

最新文章

更多