com.xpn.xwiki.render
Class WikiNameSubstitution
java.lang.Object
org.apache.oro.text.regex.StringSubstitution
org.apache.oro.text.regex.Perl5Substitution
com.xpn.xwiki.render.WikiSubstitution
com.xpn.xwiki.render.WikiNameSubstitution
- All Implemented Interfaces:
- org.apache.oro.text.regex.Substitution
- public class WikiNameSubstitution
- extends WikiSubstitution
Fields inherited from class org.apache.oro.text.regex.Perl5Substitution |
INTERPOLATE_ALL, INTERPOLATE_NONE |
Fields inherited from class org.apache.oro.text.regex.StringSubstitution |
|
Methods inherited from class com.xpn.xwiki.render.WikiSubstitution |
getMatcher, getPattern, getUtil, makePattern, makePattern, prepareSubstitution, setPattern, setPattern, setPattern, setUtil, substitute |
Methods inherited from class org.apache.oro.text.regex.Perl5Substitution |
setSubstitution, setSubstitution |
Methods inherited from class org.apache.oro.text.regex.StringSubstitution |
getSubstitution, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_ONE
public static final int TYPE_ONE
- See Also:
- Constant Field Values
TYPE_TWO
public static final int TYPE_TWO
- See Also:
- Constant Field Values
TYPE_THREE
public static final int TYPE_THREE
- See Also:
- Constant Field Values
TYPE_FOUR
public static final int TYPE_FOUR
- See Also:
- Constant Field Values
onepattern
private static final java.lang.String onepattern
- See Also:
- Constant Field Values
twopattern
private static final java.lang.String twopattern
- See Also:
- Constant Field Values
threepattern
private static final java.lang.String threepattern
- See Also:
- Constant Field Values
fourpattern
private static final java.lang.String fourpattern
- See Also:
- Constant Field Values
type
private int type
context
private XWikiContext context
WikiNameSubstitution
public WikiNameSubstitution(XWikiContext context,
int type,
Util util)
appendSubstitution
public void appendSubstitution(java.lang.StringBuffer stringBuffer,
org.apache.oro.text.regex.MatchResult matchResult,
int i,
org.apache.oro.text.regex.PatternMatcherInput minput,
org.apache.oro.text.regex.PatternMatcher patternMatcher,
org.apache.oro.text.regex.Pattern pattern)
- Specified by:
appendSubstitution
in interface org.apache.oro.text.regex.Substitution
- Overrides:
appendSubstitution
in class WikiSubstitution
substitute
public java.lang.String substitute(java.lang.String line,
int type)
getType
public int getType()
setType
public void setType(int type)
getDoc
public XWikiDocument getDoc()
substitute
public static java.lang.String substitute(XWikiContext context,
int type,
Util util,
java.lang.String line)
getContext
public XWikiContext getContext()
setContext
public void setContext(XWikiContext context)
Copyright 2003 Ludovic Dubost