com.xpn.xwiki.render.filter
Class XWikiLinkFilter
java.lang.Object
org.radeox.filter.FilterSupport
org.radeox.filter.regex.RegexFilter
org.radeox.filter.regex.RegexTokenFilter
org.radeox.filter.regex.LocaleRegexTokenFilter
com.xpn.xwiki.render.filter.XWikiLinkFilter
- All Implemented Interfaces:
- org.radeox.filter.Filter
- public class XWikiLinkFilter
- extends org.radeox.filter.regex.LocaleRegexTokenFilter
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter |
inputMessages, outputMessages |
Fields inherited from class org.radeox.filter.regex.RegexFilter |
MULTILINE, pattern, SINGLELINE, substitute |
Fields inherited from class org.radeox.filter.FilterSupport |
initialContext |
Method Summary |
protected java.lang.String |
getLocaleKey()
The regular expression for detecting WikiLinks. |
protected java.lang.String |
getWikiView(java.lang.String name)
Returns the view of the wiki name that is shown to the
user. |
void |
handleMatch(java.lang.StringBuffer buffer,
org.radeox.regex.MatchResult result,
org.radeox.filter.context.FilterContext context)
|
protected void |
setUp(org.radeox.filter.context.FilterContext context)
|
Methods inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter |
getInputBundle, getOutputBundle, isSingleLine, setInitialContext |
Methods inherited from class org.radeox.filter.regex.RegexTokenFilter |
filter |
Methods inherited from class org.radeox.filter.regex.RegexFilter |
addRegex, addRegex, clearRegex |
Methods inherited from class org.radeox.filter.FilterSupport |
before, getDescription, replaces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
XWikiLinkFilter
public XWikiLinkFilter()
getLocaleKey
protected java.lang.String getLocaleKey()
- The regular expression for detecting WikiLinks.
Overwrite in subclass to support other link styles like
OldAndUglyWikiLinking :-)
/[A-Z][a-z]+([A-Z][a-z]+)+/
wikiPattern = "\\[(.*?)\\]";
setUp
protected void setUp(org.radeox.filter.context.FilterContext context)
handleMatch
public void handleMatch(java.lang.StringBuffer buffer,
org.radeox.regex.MatchResult result,
org.radeox.filter.context.FilterContext context)
getWikiView
protected java.lang.String getWikiView(java.lang.String name)
- Returns the view of the wiki name that is shown to the
user. Overwrite to support other views for example
transform "WikiLinking" to "Wiki Linking".
Does nothing by default.
- Returns:
- view The view of the wiki name
Copyright 2003 Ludovic Dubost