SK.gnome.dwarf.mail.store.search
Class NoneKey

java.lang.Object
  extended bySK.gnome.dwarf.mail.store.search.SearchKey
      extended bySK.gnome.dwarf.mail.store.search.NoneKey

public class NoneKey
extends SearchKey

This key matches no messages.


Field Summary
 
Fields inherited from class SK.gnome.dwarf.mail.store.search.SearchKey
type
 
Constructor Summary
NoneKey()
           
 
Method Summary
 boolean match(MailMessage message)
          Matches the given message.
 
Methods inherited from class SK.gnome.dwarf.mail.store.search.SearchKey
addError, clearErrors, getErrors, getType, hasError, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoneKey

public NoneKey()
Method Detail

match

public boolean match(MailMessage message)
              throws MailException
Matches the given message.

This method always returns false, i.e. it matches no messages.

Specified by:
match in class SearchKey
Parameters:
message - the searched message
Returns:
true if the given key criteria and message matches, false otherwise
Throws:
MailException - if an error occurs


Copyright (c) 2004-2005, Gnome Ltd. All rights reserved.