|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.search.ParsedSearch
public class ParsedSearch
The ParsedSearch class takes a SearchDefinition as Input to parse. In case
the definition tells to use the Pattern directly as regular expression, the
Pattern is not parsed. In the other case, the given Pattern is parsed for the
Search-Keywords "AND", "OR" and "NOT", which may be used to specify the
Search.
The Result of the parsing are two Lists, one for the must- and one for the
must-not include keywords.
| Field Summary | |
|---|---|
private java.util.ArrayList |
mustContain
|
private java.util.ArrayList |
mustNotContain
|
private SearchDefinition |
searchDefinition
|
| Constructor Summary | |
|---|---|
private |
ParsedSearch(SearchDefinition searchDefinition)
Instantiate a new ParsedSearch. |
| Method Summary | |
|---|---|
java.util.ArrayList |
getMustContain()
Get the List with must-contain Keywords. |
java.util.ArrayList |
getMustNotContain()
Get the List with must-not-contain Keywords. |
SearchDefinition |
getSearchDefinition()
Get the Search Defintion. |
boolean |
isRegExSearch()
Check wether this search is a plain regular expression search. |
static ParsedSearch |
parseFrom(SearchDefinition searchDefinition)
Parse the given Search Definition. |
private void |
setMustContain(java.util.ArrayList mustContain)
Set the List with must-contain Keywords. |
private void |
setMustNotContain(java.util.ArrayList mustNotContain)
Set the List with must-not-contain Keywords. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList mustContain
private java.util.ArrayList mustNotContain
private SearchDefinition searchDefinition
| Constructor Detail |
|---|
private ParsedSearch(SearchDefinition searchDefinition)
searchDefinition - The Definition of this Search.| Method Detail |
|---|
public static ParsedSearch parseFrom(SearchDefinition searchDefinition)
searchDefinition - The Definition of this Search.
public java.util.ArrayList getMustContain()
public java.util.ArrayList getMustNotContain()
public SearchDefinition getSearchDefinition()
public boolean isRegExSearch()
private void setMustContain(java.util.ArrayList mustContain)
mustContain - A List of regular expressions that must match the
NewsItem in the defined Scope.private void setMustNotContain(java.util.ArrayList mustNotContain)
mustNotContain - A List of regular expressions that must not match the
NewsItem in the defined Scope.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||