|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.api.entry.WikiString
@Persistent public class WikiString
Implementation of IWikiString
that parses the original text (in
wiki markup language) on demand instead of storing the parsed information
in the database. Note that this used to be different prior to JWKTL 0.15.4.
Field Summary | |
---|---|
protected static Pattern |
COMMENT_PATTERN
|
protected static Pattern |
HTML_PATTERN
|
protected static Pattern |
QUOTES_PATTERN
|
protected static Pattern |
REFERENCES_PATTERN
|
protected static Pattern |
TEMPLATE_PATTERN
|
protected String |
text
|
protected static Pattern |
WHITESPACE_PATTERN
|
protected static Pattern |
WIKILINK_PATTERN
|
Constructor Summary | |
---|---|
WikiString()
Create a new, empty wiki string. |
|
WikiString(String text)
Create a new wiki string for the given wiki markup text. |
Method Summary | |
---|---|
String |
getPlainText()
Parses the original text to filter out all wiki markup and thus returns a human-readable version of the text. |
String |
getText()
Returns the original text including all wiki markup. |
String |
getTextIncludingWikiMarkup()
|
List<String> |
getWikiLinks()
Returns a list of wiki-internal links. |
static String |
makePlainText(String wikiText)
Transforms the given wiki markup text into a plain text version. |
void |
setText(String text)
Assign the given text as the new wiki markup text. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String text
protected static final Pattern COMMENT_PATTERN
protected static final Pattern QUOTES_PATTERN
protected static final Pattern WIKILINK_PATTERN
protected static final Pattern TEMPLATE_PATTERN
protected static final Pattern REFERENCES_PATTERN
protected static final Pattern HTML_PATTERN
protected static final Pattern WHITESPACE_PATTERN
Constructor Detail |
---|
public WikiString()
public WikiString(String text)
Method Detail |
---|
public String getText()
IWikiString
getText
in interface IWikiString
public void setText(String text)
public String getTextIncludingWikiMarkup()
getText().
public String getPlainText()
IWikiString
getPlainText
in interface IWikiString
public List<String> getWikiLinks()
IWikiString
getWikiLinks
in interface IWikiString
public String toString()
toString
in class Object
public static String makePlainText(String wikiText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |