public abstract class SearchTerm extends Object implements Serializable
Search-terms are represented by this class. This is an abstract class; subclasses implement specific match methods.
Search terms are serializable, which allows storing a search term between sessions. Warning: Serialized objects of this class may not be compatible with future JavaMail API releases. The current serialization support is appropriate for short term storage.
Search terms that include references to objects of type
Message.RecipientType will not be deserialized
correctly on JDK 1.1 systems. While these objects will be deserialized
without throwing any exceptions, the resulting objects violate the
type-safe enum contract of the
class. Proper deserialization of these objects depends on support
readReplace method, added in JDK 1.2.
|Constructor and Description|
|Modifier and Type||Method and Description|
This method applies a specific match criterion to the given message and returns the result.
public abstract boolean match(Message msg)
msg- The match criterion is applied on this message
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.