Qizx/Open v0.3

net.xfra.qizxopen.util
Class StringMatcher

java.lang.Object
  |
  +--net.xfra.qizxopen.util.StringMatcher
Direct Known Subclasses:
FuzzyMatcher, StringGlob

public class StringMatcher
extends java.lang.Object

Matches a string with a pattern. This superclass implements the identity comparison.


Constructor Summary
StringMatcher(char[] pattern, int length)
           
 
Method Summary
 boolean exactMatch()
           
 char[] getPattern()
           
 boolean matches(char[] string)
          Redefinable matching method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringMatcher

public StringMatcher(char[] pattern,
                     int length)
Method Detail

exactMatch

public boolean exactMatch()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPattern

public char[] getPattern()

matches

public boolean matches(char[] string)
Redefinable matching method.


 Copyright Xavier FRANC 2003-2004