SearchTerm (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail.search Class SearchTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
所有已实现的接口:
Serializable
直接已知子类:
AddressTerm, AndTerm, ComparisonTerm, FlagTerm, NotTerm, OrTerm, StringTerm

public abstract class SearchTerm
extends Object
implements Serializable

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.

作者:
Bill Shannon, John Mani
另请参见:
Serialized Form

构造器摘要
SearchTerm()
           
 
方法摘要
abstract  boolean match(Message msg)
          This method applies a specific match criterion to the given message and returns the result.
 
类方法继承 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.

参数:
msg - The match criterion is applied on this message
返回:
true, it the match succeeds, false if the match fails

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.