net.sf.jour.filter
Class MatchStringFilter

java.lang.Object
  extended bynet.sf.jour.filter.MatchFilter
      extended bynet.sf.jour.filter.BasicFilter
          extended bynet.sf.jour.filter.MatchStringFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
Pointcut

public class MatchStringFilter
extends BasicFilter

TODO Add docs Created on 04.12.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 1.2 $ ($Author: vlads $) $Date: 2004/12/05 07:36:08 $
Author:
vlads

Field Summary
protected static org.apache.log4j.Logger log
           
(package private)  boolean negative
           
(package private)  java.lang.String pattern
           
 
Fields inherited from class net.sf.jour.filter.MatchFilter
debug, MATCH_EXACT, MATCH_EXCLUDE, MATCH_NO, MATCH_YES, name
 
Constructor Summary
protected MatchStringFilter()
           
  MatchStringFilter(java.lang.String pattern)
           
 
Method Summary
 void debug()
           
 boolean match(java.lang.String text)
           
static int matchSimple(java.lang.String pattern, java.lang.String text)
           
 int matchState(java.lang.Object obj)
           
 boolean setPattern(java.lang.String pattern)
           
 
Methods inherited from class net.sf.jour.filter.BasicFilter
accept, getGlobPattern
 
Methods inherited from class net.sf.jour.filter.MatchFilter
b2Match, isMatch, match2String, notMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

pattern

java.lang.String pattern

negative

boolean negative
Constructor Detail

MatchStringFilter

protected MatchStringFilter()

MatchStringFilter

public MatchStringFilter(java.lang.String pattern)
Method Detail

debug

public void debug()
Specified by:
debug in class MatchFilter

setPattern

public boolean setPattern(java.lang.String pattern)

matchState

public int matchState(java.lang.Object obj)
Specified by:
matchState in class MatchFilter

match

public boolean match(java.lang.String text)

matchSimple

public static int matchSimple(java.lang.String pattern,
                              java.lang.String text)


Copyright © 2004 sourceforge. All Rights Reserved.