Known Direct Subclasses
| AddressStringTerm |
This abstract class implements string comparisons for Message
addresses. |
| BodyTerm |
This class implements searches on a message body. |
| HeaderTerm |
This class implements comparisons for Message headers. |
| MessageIDTerm |
This term models the RFC822 "MessageId" - a message-id for
Internet messages that is supposed to be unique per message. |
| SubjectTerm |
This class implements comparisons for the message Subject header. |
|
Known Indirect Subclasses
| FromStringTerm |
This class implements string comparisons for the From Address
header. |
| RecipientStringTerm |
This class implements string comparisons for the Recipient Address
headers. |
|
Class Overview
This class implements the match method for Strings. The current
implementation provides only for substring matching. We
could add comparisons (like strcmp ...).
Summary
| Fields |
|
protected
boolean |
ignoreCase |
Ignore case when comparing? |
|
protected
String |
pattern |
The pattern. |
| Public Methods |
|
boolean
|
equals(Object obj)
Equality comparison.
|
|
boolean
|
getIgnoreCase()
Return true if we should ignore case when matching.
|
|
String
|
getPattern()
Return the string to match with.
|
|
int
|
hashCode()
Compute a hashCode for this object.
|
| Protected Methods |
|
boolean
|
match(String s)
|
|
[Expand]
Inherited Methods |
From class
com.google.code.javax.mail.search.SearchTerm
|
abstract
boolean
|
match(Message msg)
This method applies a specific match criterion to the given
message and returns the result.
|
|
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:
1274042129007696269
(0x11ae4e90f062d98d)
Fields
protected
boolean
ignoreCase
Ignore case when comparing?
Protected Constructors
protected
StringTerm
(String pattern)
protected
StringTerm
(String pattern, boolean ignoreCase)
Public Methods
public
boolean
equals
(Object obj)
public
boolean
getIgnoreCase
()
Return true if we should ignore case when matching.
public
String
getPattern
()
Return the string to match with.
public
int
hashCode
()
Compute a hashCode for this object.
Protected Methods
protected
boolean
match
(String s)