Package org.radeox.filter
Class LinkTestFilter
-
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
WikiLinkFilter
public class LinkTestFilter extends LocaleRegexTokenFilter
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description LinkTestFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetLocaleKey()The regular expression for detecting WikiLinks.protected StringgetWikiView(String name, String hash)Returns the view of the wiki name that is shown to the user.voidhandleMatch(StringBuffer buffer, MatchResult result, FilterContext context)Method is called for every occurance of a regular expression.-
Methods inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter
getInputBundle, getOutputBundle, isSingleLine, setInitialContext
-
Methods inherited from class org.radeox.filter.regex.RegexTokenFilter
filter, setUp
-
Methods inherited from class org.radeox.filter.regex.RegexFilter
addRegex, addRegex, clearRegex
-
Methods inherited from class org.radeox.filter.FilterSupport
before, getDescription, replaces
-
-
-
-
Method Detail
-
getLocaleKey
protected 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 = "\\[(.*?)\\]";- Specified by:
getLocaleKeyin classLocaleRegexTokenFilter
-
handleMatch
public void handleMatch(StringBuffer buffer, MatchResult result, FilterContext context)
Description copied from class:RegexTokenFilterMethod is called for every occurance of a regular expression. Subclasses have to implement this mehtod.- Specified by:
handleMatchin classRegexTokenFilter- Parameters:
buffer- Buffer to write replacement string toresult- Hit with the found regualr expressioncontext- FilterContext for filters
-
-