javax.mail.search

Class SearchTerm

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.
Method Summary
abstract booleanmatch(Message message)
Checks a matching criteria defined by the concrete subclass of this Term.

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