|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.search.SearchTerm<ComparablePattern<java.util.Date>>
com.openexchange.mail.search.SentDateTerm
public final class SentDateTerm
| Constructor Summary | |
|---|---|
SentDateTerm(ComparisonType comparisonType,
java.util.Date sentDate)
Initializes a new SentDateTerm |
|
| Method Summary | |
|---|---|
void |
addMailField(java.util.Collection<MailField> col)
Adds the addressed MailField to specified collection |
javax.mail.search.SearchTerm |
getJavaMailSearchTerm()
Generates the corresponding JavaMail instance of SearchTerm from this search term |
javax.mail.search.SearchTerm |
getNonWildcardJavaMailSearchTerm()
Generates the corresponding instance of SearchTerm from this search term without any wildcard characters. |
ComparablePattern<java.util.Date> |
getPattern()
Gets the pattern to which the expression should match. |
boolean |
matches(MailMessage mailMessage)
Checks if specified mail message matches this search term |
boolean |
matches(javax.mail.Message msg)
Checks if given message matches this search term |
| Methods inherited from class com.openexchange.mail.search.SearchTerm |
|---|
containsWildcard, filter, filter, isAscii |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SentDateTerm(ComparisonType comparisonType,
java.util.Date sentDate)
SentDateTerm
| Method Detail |
|---|
public ComparablePattern<java.util.Date> getPattern()
SearchTerm
getPattern in class SearchTerm<ComparablePattern<java.util.Date>>public void addMailField(java.util.Collection<MailField> col)
SearchTerm
addMailField in class SearchTerm<ComparablePattern<java.util.Date>>col - The collection which gathers addressed fieldspublic boolean matches(MailMessage mailMessage)
SearchTerm
matches in class SearchTerm<ComparablePattern<java.util.Date>>mailMessage - The mail message to check
true if specified mail message matches this search term; otherwise false
public boolean matches(javax.mail.Message msg)
throws MailException
SearchTerm
matches in class SearchTerm<ComparablePattern<java.util.Date>>msg - The message to check
true if message matches this search term; otherwise false
MailException - If check failspublic javax.mail.search.SearchTerm getJavaMailSearchTerm()
SearchTermSearchTerm from this search term
getJavaMailSearchTerm in class SearchTerm<ComparablePattern<java.util.Date>>SearchTermpublic javax.mail.search.SearchTerm getNonWildcardJavaMailSearchTerm()
SearchTermSearchTerm from this search term without any wildcard characters.
This is useful to preselect possible positives and to manually filtering out false positives.
getNonWildcardJavaMailSearchTerm in class SearchTerm<ComparablePattern<java.util.Date>>SearchTerm without any wildcard characters.SearchTerm.containsWildcard()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||