TV-Browser 2.7.5 API

tvbrowser.core.search.booleansearch
Class MatcherEx

java.lang.Object
  extended by tvbrowser.core.search.booleansearch.MatcherEx
All Implemented Interfaces:
Block

public class MatcherEx
extends Object
implements Block

Erkennt Wörter mit " "-Zeichen.

Author:
Gilson Laurent, pumpkin@gmx.de

Constructor Summary
MatcherEx(String s1, String s2, boolean CaseSensitive, Hashtable<String,Object> matcherTable)
           
 
Method Summary
 void addPart(String s)
           
 Block finish()
          Initialisiert und optimiert den Block.
 boolean test(String s)
          Zuerst wird schnell über AND-verknüpfte Matcher getestet ob alle Elemente vorhanden sind.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatcherEx

public MatcherEx(String s1,
                 String s2,
                 boolean CaseSensitive,
                 Hashtable<String,Object> matcherTable)
Method Detail

addPart

public void addPart(String s)

finish

public Block finish()
Description copied from interface: Block
Initialisiert und optimiert den Block. Da der Block u.U. ausgetauscht werden muss gibt die Methode einen (neuen) Block zurück. Dieser ist zu verwenden.

Specified by:
finish in interface Block

test

public boolean test(String s)
Zuerst wird schnell über AND-verknüpfte Matcher getestet ob alle Elemente vorhanden sind. Danach kommt ein Regex zum Einsatz.

Specified by:
test in interface Block

toString

public String toString()
Overrides:
toString in class Object

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)