当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class SearchTerm - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.mail.search
Class SearchTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
- Direct Known Subclasses:
- AddressTerm, AndTerm, ComparisonTerm, FlagTerm, NotTerm, OrTerm, StringTerm
- public abstract class SearchTerm
- extends java.lang.Object
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.
Method Summary |
abstract boolean |
match(Message msg)
This method applies a specific match criterion to the given
message and returns the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchTerm
public SearchTerm()
match
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