| java.lang.Object |
| ↳ |
com.google.code.javax.mail.search.SearchTerm |
Known Direct Subclasses
| AddressTerm |
This class implements Message Address comparisons. |
| AndTerm |
This class implements the logical AND operator on individual
SearchTerms. |
| ComparisonTerm |
This class models the comparison operator. |
| FlagTerm |
This class implements comparisons for Message Flags. |
| GmailSearchTerm |
|
| NotTerm |
This class implements the logical NEGATION operator. |
| OrTerm |
This class implements the logical OR operator on individual SearchTerms. |
| StringTerm |
This class implements the match method for Strings. |
|
Known Indirect Subclasses
AddressStringTerm,
BodyTerm,
DateTerm,
FromStringTerm,
FromTerm,
GmailLabelTerm,
GmailMessageIDTerm,
GmailRawSearchTerm,
GmailThreadIDTerm,
HeaderTerm,
IntegerComparisonTerm,
MessageIDTerm,
MessageNumberTerm,
ReceivedDateTerm,
RecipientStringTerm,
RecipientTerm,
SentDateTerm,
SizeTerm,
SubjectTerm
|
Class Overview
Search criteria are expressed as a tree of search-terms, forming
a parse-tree for the search expression.
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.
Warning:
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 Message.RecipientType
class. Proper deserialization of these objects depends on support
for the readReplace method, added in JDK 1.2.
Summary
| Public Methods |
|
abstract
boolean
|
match(Message msg)
This method applies a specific match criterion to the given
message and returns the result.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
private
static
final
long
serialVersionUID
Constant Value:
-6652358452205992789
(0xa3ae133bc1b1c4ab)
Public Constructors
Public Methods
public
abstract
boolean
match
(Message msg)
This method applies a specific match criterion to the given
message and returns the result.
Parameters
| msg
| The match criterion is applied on this message |
Returns
- true, it the match succeeds, false if the match fails