talx x1.0.5

talx.model.mail
Class ToPersonTerm

java.lang.Object
  extended byjavax.mail.search.SearchTerm
      extended bytalx.model.mail.ToPersonTerm
All Implemented Interfaces:
java.io.Serializable

public class ToPersonTerm
extends javax.mail.search.SearchTerm

Search Term that matches message to a given Person object.

See Also:
Serialized Form

Field Summary
protected  Person person
           
 
Constructor Summary
ToPersonTerm(Person p)
           
 
Method Summary
 Person getPerson()
           
 boolean match(javax.mail.Message msg)
          Compares the message's recipients with the person in this search term.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

person

protected Person person
Constructor Detail

ToPersonTerm

public ToPersonTerm(Person p)
Method Detail

getPerson

public Person getPerson()

match

public boolean match(javax.mail.Message msg)
Compares the message's recipients with the person in this search term.

Parameters:
msg - message to compare.
Returns:
true if msg contains a recipient matching the person for this search term. False otherwise.

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.