|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.rssowl.util.SearchpatternParser
Class for parsing the search pattern (Operators: AND, OR, NOT).
| Field Summary | |
static String |
MUST_KEY
Hashtable Key for the Must Key-Words |
static String |
MUSTNOT_KEY
Hashtable Key for the Must-Not Key-Words |
| Constructor Summary | |
private |
SearchpatternParser()
This utility class constructor is hidden |
| Method Summary | |
static Vector |
generateRegEx(Vector keys)
Generate a RegEx from the AND / OR keywords. |
private static int |
getClosestKeyword(String pattern,
int notIndex)
Finds the next index of one of the keywords AND, OR |
private static Vector |
parseMustAndMayWords(String pattern)
Parse Words that should match the result (AND / OR) |
static Hashtable |
parsePattern(String pattern)
Parse the search pattern and return a Hashtable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String MUST_KEY
public static final String MUSTNOT_KEY
| Constructor Detail |
private SearchpatternParser()
| Method Detail |
public static Vector generateRegEx(Vector keys)
keys - Vector holding the AND / OR Keywords
public static Hashtable parsePattern(String pattern)
pattern - The search pattern (e.g. "Car AND Audi NOT Ferrari")
private static int getClosestKeyword(String pattern,
int notIndex)
pattern - The search patternnotIndex - Current position in search pattern
private static Vector parseMustAndMayWords(String pattern)
pattern - The search pattern (NOT words are removed)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||