com.xpn.xwiki.render
Class FormattingSubstitution

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.FormattingSubstitution
All Implemented Interfaces:
org.apache.oro.text.regex.Substitution

public class FormattingSubstitution
extends WikiSubstitution


Field Summary
private static java.lang.String postfixpattern
           
private static java.lang.String prefixpattern
           
private  int type
           
static int TYPE_BOLDFIXED
           
static int TYPE_FIXED
           
static int TYPE_ITALIC
           
static int TYPE_STRONG
           
static int TYPE_STRONGITALIC
           
private static java.lang.String validcharpattern
           
 
Fields inherited from class org.apache.oro.text.regex.Perl5Substitution
INTERPOLATE_ALL, INTERPOLATE_NONE
 
Constructor Summary
FormattingSubstitution(Util util, int type)
           
 
Method Summary
 int getType()
           
 java.lang.String makePattern(java.lang.String patternparam)
           
 java.lang.String makeUnbreakingSpace(java.lang.String text)
           
 void prepareSubstitution(org.apache.oro.text.regex.MatchResult matchResult)
           
 void setType(int type)
           
static java.lang.String substitute(Util util, int type, java.lang.String line)
           
 
Methods inherited from class com.xpn.xwiki.render.WikiSubstitution
appendSubstitution, getMatcher, getPattern, getUtil, makePattern, 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

postfixpattern

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

validcharpattern

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

prefixpattern

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

TYPE_STRONG

public static final int TYPE_STRONG
See Also:
Constant Field Values

TYPE_ITALIC

public static final int TYPE_ITALIC
See Also:
Constant Field Values

TYPE_STRONGITALIC

public static final int TYPE_STRONGITALIC
See Also:
Constant Field Values

TYPE_FIXED

public static final int TYPE_FIXED
See Also:
Constant Field Values

TYPE_BOLDFIXED

public static final int TYPE_BOLDFIXED
See Also:
Constant Field Values

type

private int type
Constructor Detail

FormattingSubstitution

public FormattingSubstitution(Util util,
                              int type)
Method Detail

makePattern

public java.lang.String makePattern(java.lang.String patternparam)
Overrides:
makePattern in class WikiSubstitution

makeUnbreakingSpace

public java.lang.String makeUnbreakingSpace(java.lang.String text)

prepareSubstitution

public void prepareSubstitution(org.apache.oro.text.regex.MatchResult matchResult)
Overrides:
prepareSubstitution in class WikiSubstitution

substitute

public static java.lang.String substitute(Util util,
                                          int type,
                                          java.lang.String line)

getType

public int getType()

setType

public void setType(int type)


Copyright 2003 Ludovic Dubost