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

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

public class AllKey
extends SearchKey

This key matches all messages.


Field Summary
 
Fields inherited from class SK.gnome.dwarf.mail.store.search.SearchKey
type
 
Constructor Summary
AllKey()
           
 
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

AllKey

public AllKey()
Method Detail

match

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

This method always returns true, i.e. it matches all 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.