com.atlassian.confluence.renderer.radeox.filters
Class LinkTestFilter
java.lang.Object
org.radeox.filter.FilterSupport
org.radeox.filter.regex.RegexFilter
org.radeox.filter.regex.RegexTokenFilter
com.atlassian.confluence.renderer.radeox.filters.LinkTestFilter
- All Implemented Interfaces:
- org.radeox.filter.Filter
public class LinkTestFilter
- extends org.radeox.filter.regex.RegexTokenFilter
Field Summary |
static java.lang.String |
PATTERN
The following pattern can be broken down as follows:
(\\[) == literal '['
[\\p{L}&[^\[\\]\\p{Space}]] == a single character but not ' ', '[' or ']'
[\\p{L}&[^\[\\]]]* == zero or more instances of characters that are not '[' or ']'
\\] == literal ']' |
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 void |
appendUnresolvedLink(java.lang.StringBuffer buffer,
com.atlassian.renderer.links.Link link)
|
java.lang.String |
filter(java.lang.String pattern,
org.radeox.filter.context.FilterContext context)
|
protected int |
getLinkType()
|
void |
handleMatch(java.lang.StringBuffer buffer,
org.radeox.regex.MatchResult result,
org.radeox.filter.context.FilterContext context)
|
void |
setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
|
protected void |
setUp(org.radeox.filter.context.FilterContext context)
|
Methods inherited from class org.radeox.filter.regex.RegexFilter |
addRegex, addRegex, clearRegex |
Methods inherited from class org.radeox.filter.FilterSupport |
before, getDescription, replaces, setInitialContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATTERN
public static final java.lang.String PATTERN
- The following pattern can be broken down as follows:
(\\[) == literal '['
[\\p{L}&[^\[\\]\\p{Space}]] == a single character but not ' ', '[' or ']'
[\\p{L}&[^\[\\]]]* == zero or more instances of characters that are not '[' or ']'
\\] == literal ']'
- See Also:
- Constant Field Values
LinkTestFilter
public LinkTestFilter()
LinkTestFilter
protected LinkTestFilter(java.lang.String pattern,
int active_grp_no)
setUp
protected void setUp(org.radeox.filter.context.FilterContext context)
- Overrides:
setUp
in class org.radeox.filter.regex.RegexTokenFilter
getLinkType
protected int getLinkType()
filter
public java.lang.String filter(java.lang.String pattern,
org.radeox.filter.context.FilterContext context)
- Specified by:
filter
in interface org.radeox.filter.Filter
- Overrides:
filter
in class org.radeox.filter.regex.RegexTokenFilter
handleMatch
public void handleMatch(java.lang.StringBuffer buffer,
org.radeox.regex.MatchResult result,
org.radeox.filter.context.FilterContext context)
- Specified by:
handleMatch
in class org.radeox.filter.regex.RegexTokenFilter
appendUnresolvedLink
protected void appendUnresolvedLink(java.lang.StringBuffer buffer,
com.atlassian.renderer.links.Link link)
setLinkResolver
public void setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.