Home » apache-tomcat-6.0.26-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: FromStringTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.StringTerm
         javax.mail.search.AddressStringTerm
            javax.mail.search.FromStringTerm

All Implemented Interfaces:
    Serializable

This class implements string comparisons for the From Address header.

Note that this class differs from the FromTerm class in that this class does comparisons on address strings rather than Address objects. The string comparisons are case-insensitive.

Fields inherited from javax.mail.search.StringTerm:
pattern,  ignoreCase
Constructor:
 public FromStringTerm(String pattern) 
    Constructor.
    Parameters:
    pattern - the address pattern to be compared.
Method from javax.mail.search.FromStringTerm Summary:
equals,   match
Methods from javax.mail.search.AddressStringTerm:
equals,   match
Methods from javax.mail.search.StringTerm:
equals,   getIgnoreCase,   getPattern,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.FromStringTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public boolean match(Message msg) 
    Check whether the address string specified in the constructor is a substring of the From address of this Message.