com.xpn.xwiki.render
Class HeadingSubstitution

java.lang.Object
  extended byorg.apache.oro.text.regex.StringSubstitution
      extended byorg.apache.oro.text.regex.Perl5Substitution
          extended bycom.xpn.xwiki.render.WikiSubstitution
              extended bycom.xpn.xwiki.render.HeadingSubstitution
All Implemented Interfaces:
org.apache.oro.text.regex.Substitution

public class HeadingSubstitution
extends WikiSubstitution


Field Summary
static int DA
           
static int HT
           
private  int type
           
 
Fields inherited from class com.xpn.xwiki.render.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
 
Constructor Summary
HeadingSubstitution(Util util, java.lang.String patternparam, int type)
           
 
Method Summary
 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)
           
static java.lang.String substitute(Util util, java.lang.String pattern, int type, java.lang.String line)
           
 
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
 

Field Detail

HT

public static final int HT
See Also:
Constant Field Values

DA

public static final int DA
See Also:
Constant Field Values

type

private int type
Constructor Detail

HeadingSubstitution

public HeadingSubstitution(Util util,
                           java.lang.String patternparam,
                           int type)
Method Detail

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 static java.lang.String substitute(Util util,
                                          java.lang.String pattern,
                                          int type,
                                          java.lang.String line)


Copyright 2003 Ludovic Dubost