javax.mail.search
Class SearchTerm
java.lang.Object
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: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
- See Also:
- Serialized Form
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 |
SearchTerm
public SearchTerm()
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 © 2006 Apache Software Foundation. All Rights Reserved.