com.xpn.xwiki.render
Class ListSubstitution

java.lang.Object
  extended by org.apache.oro.text.regex.StringSubstitution
      extended by org.apache.oro.text.regex.Perl5Substitution
          extended by com.xpn.xwiki.render.WikiSubstitution
              extended by com.xpn.xwiki.render.ListSubstitution
All Implemented Interfaces:
org.apache.oro.text.regex.Substitution

public class ListSubstitution
extends WikiSubstitution


Field Summary
private  java.lang.String currentline
           
private  java.lang.StringBuffer currentList
           
private  int currenttype
           
private static java.lang.String dlpattern
           
private  boolean finished
           
private static java.lang.String olpattern
           
private static int TYPE_DL
           
private static int TYPE_OL
           
private static int TYPE_UL1
           
private static int TYPE_UL2
           
private static java.lang.String ulpattern1
           
private static java.lang.String ulpattern2
           
 
Fields inherited from class org.apache.oro.text.regex.Perl5Substitution
INTERPOLATE_ALL, INTERPOLATE_NONE
 
Constructor Summary
ListSubstitution(Util util)
           
 
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)
           
 java.lang.String dumpCurrentList(java.lang.StringBuffer output, boolean force)
           
 java.lang.String handleList(java.lang.String line)
           
 java.lang.String substitute(java.lang.String line, int type)
           
 
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

TYPE_DL

private static final int TYPE_DL
See Also:
Constant Field Values

TYPE_UL1

private static final int TYPE_UL1
See Also:
Constant Field Values

TYPE_UL2

private static final int TYPE_UL2
See Also:
Constant Field Values

TYPE_OL

private static final int TYPE_OL
See Also:
Constant Field Values

dlpattern

private static final java.lang.String dlpattern
See Also:
Constant Field Values

ulpattern1

private static final java.lang.String ulpattern1
See Also:
Constant Field Values

ulpattern2

private static final java.lang.String ulpattern2
See Also:
Constant Field Values

olpattern

private static final java.lang.String olpattern
See Also:
Constant Field Values

finished

private boolean finished

currenttype

private int currenttype

currentline

private java.lang.String currentline

currentList

private java.lang.StringBuffer currentList
Constructor Detail

ListSubstitution

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

handleList

public java.lang.String handleList(java.lang.String line)

dumpCurrentList

public java.lang.String dumpCurrentList(java.lang.StringBuffer output,
                                        boolean force)


Copyright 2003 Ludovic Dubost