org.jacorb.notification.util
Class PatternWrapper

java.lang.Object
  extended byorg.jacorb.notification.util.PatternWrapper
Direct Known Subclasses:
GNUPatternWrapper, JakartaRegexpPatternWrapper, JDK14PatternWrapper

public abstract class PatternWrapper
extends java.lang.Object

This is a Wrapper around a PatternMatcher.


Constructor Summary
PatternWrapper()
           
 
Method Summary
abstract  void compile(java.lang.String pattern)
           
static PatternWrapper init(java.lang.String patternString)
           
abstract  int match(java.lang.String text)
          Match the given input against this pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternWrapper

public PatternWrapper()
Method Detail

init

public static PatternWrapper init(java.lang.String patternString)

compile

public abstract void compile(java.lang.String pattern)

match

public abstract int match(java.lang.String text)
Match the given input against this pattern.

Parameters:
text - the input to be matched
Returns:
the index of the last character matched, plus one or zero if the pattern did not match.