javax.mail.search

Class SearchTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
AddressTerm, AndTerm, ComparisonTerm, FlagTerm, NotTerm, OrTerm, StringTerm

public abstract class SearchTerm
extends java.lang.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.

Method Summary

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

Method Details

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