|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.search.SearchDefinition
public class SearchDefinition
A SearchDefinition describes a Pattern to search in a certain Scope.
| Field Summary | |
|---|---|
private boolean |
isCaseSensitive
|
private boolean |
isPatternRegEx
|
private boolean |
isWholeWord
|
static SearchDefinition |
NO_SEARCH
Default indicator for no search |
private java.lang.String |
pattern
|
private int |
scope
|
static int |
SCOPE_AUTHOR
Scope: Author |
static int |
SCOPE_CATEGORY
Scope: Category |
static int |
SCOPE_DESCRIPTION
Scope: Description |
static int |
SCOPE_ENCLOSURE
Scope: Enclosure |
static java.lang.String[] |
SCOPE_NAMES
Human Readable Scope-Names |
static int |
SCOPE_NEWS
Scope: Entire News |
static int |
SCOPE_NEWSFEED
Scope: Newsfeed Title |
static int |
SCOPE_PUBDATE
Scope: Publish Date |
static int |
SCOPE_TITLE
Scope: Title |
| Constructor Summary | |
|---|---|
SearchDefinition(java.lang.String pattern,
int scope)
Instantiate a new SearchDefinition. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
This implementation of equals() is not checking all fields, because only the Pattern is currently relevent in the SearchDialog, where a List of searches is remembered. |
java.lang.String |
getPattern()
Get the Pattern to use for the search. |
int |
getScope()
Get the Scope to use for the search. |
int |
hashCode()
|
boolean |
isCaseSensitive()
Check wether this Search is Case Sensitive. |
boolean |
isPatternRegEx()
Get wether the Pattern is a Regular Expression. |
boolean |
isWholeWord()
Check if Search should only consider Whole Words. |
void |
setIsCaseSensitive(boolean isCaseSensitive)
Set wether this Search is Case Sensitive |
void |
setIsWholeWord(boolean isWholeWord)
Set wether Search should only consider Whole Words. |
void |
setPatternIsRegEx(boolean isPatternRegEx)
Set wether the Pattern is a Regular Expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SearchDefinition NO_SEARCH
public static final int SCOPE_AUTHOR
public static final int SCOPE_CATEGORY
public static final int SCOPE_DESCRIPTION
public static final int SCOPE_ENCLOSURE
public static final java.lang.String[] SCOPE_NAMES
public static final int SCOPE_NEWS
public static final int SCOPE_NEWSFEED
public static final int SCOPE_PUBDATE
public static final int SCOPE_TITLE
private boolean isCaseSensitive
private boolean isPatternRegEx
private boolean isWholeWord
private java.lang.String pattern
private int scope
| Constructor Detail |
|---|
public SearchDefinition(java.lang.String pattern,
int scope)
pattern - The Pattern to search.scope - The Scope of the search.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
This implementation of equals() is not checking all fields, because only the Pattern is currently relevent in the SearchDialog, where a List of searches is remembered.
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getPattern()
public int getScope()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isCaseSensitive()
public boolean isPatternRegEx()
public boolean isWholeWord()
public void setIsCaseSensitive(boolean isCaseSensitive)
isCaseSensitive - TRUE for Case Sensitive Search.public void setIsWholeWord(boolean isWholeWord)
isWholeWord - TRUE for Whole Words Search.public void setPatternIsRegEx(boolean isPatternRegEx)
isPatternRegEx - Set TRUE if the Pattern should be used as Regular
Expression directly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||