org.radeox.filter.regex
Class RegexFilter

java.lang.Object
  |
  +--org.radeox.filter.FilterSupport
        |
        +--org.radeox.filter.regex.RegexFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
RegexReplaceFilter, RegexTokenFilter

public abstract class RegexFilter
extends FilterSupport


Field Summary
protected  int interps
           
protected  int limit
           
protected  PatternMatcher matcher
           
static boolean MULTILINE
           
protected  java.util.List pattern
           
static boolean SINGLELINE
           
protected  java.util.List substitute
           
 
Fields inherited from class org.radeox.filter.FilterSupport
initialContext
 
Constructor Summary
RegexFilter()
           
RegexFilter(java.lang.String regex, java.lang.String substitute)
          create a new regular expression that takes input as multiple lines
RegexFilter(java.lang.String regex, java.lang.String substitute, boolean multiline)
          create a new regular expression and set
 
Method Summary
 void addRegex(java.lang.String regex, java.lang.String substitute)
           
 void addRegex(java.lang.String regex, java.lang.String substitute, boolean multiline)
           
 void clearRegex()
           
abstract  java.lang.String filter(java.lang.String input, FilterContext context)
           
 
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
 

Field Detail

limit

protected int limit

interps

protected int interps

matcher

protected PatternMatcher matcher

pattern

protected java.util.List pattern

substitute

protected java.util.List substitute

MULTILINE

public static final boolean MULTILINE
See Also:
Constant Field Values

SINGLELINE

public static final boolean SINGLELINE
See Also:
Constant Field Values
Constructor Detail

RegexFilter

public RegexFilter()

RegexFilter

public RegexFilter(java.lang.String regex,
                   java.lang.String substitute)
create a new regular expression that takes input as multiple lines


RegexFilter

public RegexFilter(java.lang.String regex,
                   java.lang.String substitute,
                   boolean multiline)
create a new regular expression and set

Method Detail

clearRegex

public void clearRegex()

addRegex

public void addRegex(java.lang.String regex,
                     java.lang.String substitute)

addRegex

public void addRegex(java.lang.String regex,
                     java.lang.String substitute,
                     boolean multiline)

filter

public abstract java.lang.String filter(java.lang.String input,
                                        FilterContext context)


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.