javax.mail.search
Class SearchTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AddressTerm, AndTerm, ComparisonTerm, FlagTerm, NotTerm, OrTerm, StringTerm

public abstract class SearchTerm
extends Object
implements Serializable

Base class for Terms in a parse tree used to represent a search condition. This class is Serializable to allow for the short term persistence of searches between Sessions; this is not intended for long-term persistence.

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Constructor Summary
SearchTerm()
           
 
Method Summary
abstract  boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchTerm

public SearchTerm()
Method Detail

match

public abstract boolean match(Message message)
Checks a matching criteria defined by the concrete subclass of this Term.

Parameters:
message - the message to apply the matching criteria to
Returns:
true if the matching criteria is met


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.