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

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    BodyTerm, RecipientStringTerm, MessageIDTerm, FromStringTerm, SubjectTerm, HeaderTerm, AddressStringTerm

This class implements the match method for Strings. The current implementation provides only for substring matching. We could add comparisons (like strcmp ...).
Field Summary
protected  String pattern    The pattern.
    serial:
 
protected  boolean ignoreCase    Ignore case when comparing?
    serial:
 
Constructor:
 protected StringTerm(String pattern) 
 protected StringTerm(String pattern,
    boolean ignoreCase) 
Method from javax.mail.search.StringTerm Summary:
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.StringTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public boolean getIgnoreCase() 
    Return true if we should ignore case when matching.
 public String getPattern() 
    Return the string to match with.
 public int hashCode() 
    Compute a hashCode for this object.
 protected boolean match(String s)