javax.mail.search
Class AddressStringTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.StringTerm
          extended by javax.mail.search.AddressStringTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FromStringTerm, RecipientStringTerm

public abstract class AddressStringTerm
extends StringTerm

A Term that compares two Addresses as Strings.

Version:
$Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.mail.search.StringTerm
ignoreCase, pattern
 
Constructor Summary
protected AddressStringTerm(String pattern)
          Constructor.
 
Method Summary
protected  boolean match(Address address)
          Tests if the patterm associated with this Term is a substring of the address in the supplied object.
 
Methods inherited from class javax.mail.search.StringTerm
equals, getIgnoreCase, getPattern, hashCode, match
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressStringTerm

protected AddressStringTerm(String pattern)
Constructor.

Parameters:
pattern - the pattern to be compared
Method Detail

match

protected boolean match(Address address)
Tests if the patterm associated with this Term is a substring of the address in the supplied object.

Parameters:
address -
Returns:


Copyright © 2006 Apache Software Foundation. All Rights Reserved.