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: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 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 © 2003-2009 The Apache Software Foundation. All Rights Reserved.