com.xpn.xwiki.render.filter
Class XWikiListFilter

java.lang.Object
  extended by org.radeox.filter.FilterSupport
      extended by org.radeox.filter.regex.RegexFilter
          extended by org.radeox.filter.regex.RegexTokenFilter
              extended by org.radeox.filter.regex.LocaleRegexTokenFilter
                  extended by org.radeox.filter.ListFilter
                      extended by com.xpn.xwiki.render.filter.XWikiListFilter
All Implemented Interfaces:
org.radeox.filter.CacheFilter, org.radeox.filter.Filter

public class XWikiListFilter
extends org.radeox.filter.ListFilter
implements org.radeox.filter.CacheFilter

Listfilter checks for lists in in its input. These are transformed to output lists, e.g. in HTML. Recognizes different lists like numbered lists, unnumbered lists, greek lists, alpha lists etc.

Version:
$Id: 86d7f7fc75d6ceaa4a7fee88aaf711c3f7b2510c $

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
XWikiListFilter()
          Default constructor; builds predefined open and close lists.
 
Method Summary
 void handleMatch(StringBuffer buffer, org.radeox.regex.MatchResult result, org.radeox.filter.context.FilterContext context)
          Method called whenever the wiki source matches the list syntax.
 
Methods inherited from class org.radeox.filter.ListFilter
getLocaleKey, isSingleLine
 
Methods inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter
getInputBundle, getOutputBundle, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiListFilter

public XWikiListFilter()
Default constructor; builds predefined open and close lists.

Method Detail

handleMatch

public void handleMatch(StringBuffer buffer,
                        org.radeox.regex.MatchResult result,
                        org.radeox.filter.context.FilterContext context)
Method called whenever the wiki source matches the list syntax. It converts the wiki syntax to HTML markup.

Overrides:
handleMatch in class org.radeox.filter.ListFilter
Parameters:
buffer - The output buffer, where the HTML code is printed.
result - The regex match result; input is read from this Reader.
context - The FilterContext object, used to get access to the Rendering context.
See Also:
ListFilter.handleMatch(StringBuffer, org.radeox.regex.MatchResult, org.radeox.filter.context.FilterContext)


Copyright © 2004-2013 XWiki. All Rights Reserved.