|
||||||||||
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.FlagKey
This key matches the given flag and the actual message flag.
Field Summary | |
protected MailFlag |
flag
The matched flag. |
static int |
SET
This key type specifies that a flag which is set will be matched. |
static int |
UNSET
This key type specifies that a flag which is not set will be matched. |
Fields inherited from class SK.gnome.dwarf.mail.store.search.SearchKey |
type |
Constructor Summary | |
FlagKey(int type,
MailFlag flag)
Creates a new FlagKey. |
Method Summary | |
MailFlag |
getFlag()
Returns the matched flag. |
boolean |
match(MailMessage message)
Matches the given flag and the actual message flag. |
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 SET
public static final int UNSET
protected MailFlag flag
Constructor Detail |
public FlagKey(int type, MailFlag flag)
type
- the key typeflag
- the matched flagMethod Detail |
public MailFlag getFlag()
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 |