|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.mail.store.search.SearchKey SK.gnome.dwarf.mail.store.search.SearchKeyList
This key groups other keys together.
Field Summary | |
static int |
AND
This key type specifies that the grouped keys will be logically AND-ed. |
protected java.util.List |
keys
The list of grouped keys. |
static int |
OR
This key type specifies that the grouped keys will be logically OR-ed. |
Fields inherited from class SK.gnome.dwarf.mail.store.search.SearchKey |
type |
Constructor Summary | |
SearchKeyList(int type)
Creates a new SearchKeyList. |
Method Summary | |
void |
addKey(SearchKey key)
Adds a key to the group. |
java.util.Iterator |
getKeys()
Returns the grouped keys. |
boolean |
match(MailMessage message)
Matches the grouped keys and the message. |
java.lang.String |
toString()
Returns the string represenation of the key. |
Methods inherited from class SK.gnome.dwarf.mail.store.search.SearchKey |
addError, clearErrors, getErrors, getType, hasError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int AND
public static final int OR
protected java.util.List keys
Constructor Detail |
public SearchKeyList(int type)
type
- the key typeMethod Detail |
public void addKey(SearchKey key)
key
- the key to addpublic java.util.Iterator getKeys()
public boolean match(MailMessage message) throws MailException
match
in class SearchKey
message
- the searched message
MailException
- if an error occurspublic java.lang.String toString()
SearchKey
toString
in class SearchKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |