info.bliki.wiki.dump
Class WikiPatternMatcher
java.lang.Object
info.bliki.wiki.dump.WikiPatternMatcher
public class WikiPatternMatcher
- extends java.lang.Object
Can be used as a stand alone class to pattern match parts of the wiki
formatted text.
Copied and modified from the WikiXMLJ project.
- Author:
- Delip Rao modified by Axel Kramer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiPatternMatcher
public WikiPatternMatcher(java.lang.String wtext)
isRedirect
public boolean isRedirect()
isStub
public boolean isStub()
getRedirectText
public java.lang.String getRedirectText()
getText
public java.lang.String getText()
getCategories
public java.util.List<java.lang.String> getCategories()
getLinks
public java.util.List<java.lang.String> getLinks()
getPlainText
public java.lang.String getPlainText()
- Strip wiki formatting characters from the given wiki text.
- Returns:
getInfoBox
public InfoBox getInfoBox()
- Parse the Infobox template (i.e. parsing a string starting with
"{{Infobox" and ending with "}}")
- Returns:
null
if the Infobox template wasn't found.
isDisambiguationPage
public boolean isDisambiguationPage()
getTranslatedTitle
public java.lang.String getTranslatedTitle(java.lang.String languageCode)
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.