| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.StringTerm
public abstract class StringTerm
A Term that provides matching criteria for Strings.
| Field Summary | |
|---|---|
protected  boolean | 
ignoreCase
If true, case should be ignored during matching.  | 
protected  String | 
pattern
The pattern associated with this term.  | 
| Constructor Summary | |
|---|---|
protected  | 
StringTerm(String pattern)
Constructor specifying a pattern.  | 
protected  | 
StringTerm(String pattern,
                     boolean ignoreCase)
Constructor specifying pattern and case sensitivity.  | 
| Method Summary | |
|---|---|
 boolean | 
equals(Object other)
 | 
 boolean | 
getIgnoreCase()
Indicate if case should be ignored when matching.  | 
 String | 
getPattern()
Return the pattern associated with this term.  | 
 int | 
hashCode()
 | 
protected  boolean | 
match(String match)
Determine if the pattern associated with this term is a substring of the supplied String.  | 
| 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 | 
| Field Detail | 
|---|
protected boolean ignoreCase
protected String pattern
| Constructor Detail | 
|---|
protected StringTerm(String pattern)
pattern - the pattern for this term
protected StringTerm(String pattern,
                     boolean ignoreCase)
pattern - the pattern for this termignoreCase - if true, case should be ignored during matching| Method Detail | 
|---|
public String getPattern()
public boolean getIgnoreCase()
protected boolean match(String match)
match - the String to compare to
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||