当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class StringTerm - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.mail.search
Class StringTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.StringTerm
- Direct Known Subclasses:
- AddressStringTerm, BodyTerm, HeaderTerm, MessageIDTerm, SubjectTerm
- public abstract class StringTerm
- extends SearchTerm
This class implements the match method for Strings. The current
implementation provides only for substring matching. We
could add comparisons (like strcmp ...).
Constructor Summary |
protected |
StringTerm(java.lang.String pattern)
|
protected |
StringTerm(java.lang.String pattern,
boolean ignoreCase)
|
Method Summary |
boolean |
getIgnoreCase()
Return true if we should ignore case when matching. |
java.lang.String |
getPattern()
Return the string to match with. |
protected boolean |
match(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
protected java.lang.String pattern
ignoreCase
protected boolean ignoreCase
StringTerm
protected StringTerm(java.lang.String pattern)
StringTerm
protected StringTerm(java.lang.String pattern,
boolean ignoreCase)
getPattern
public java.lang.String getPattern()
- Return the string to match with.
getIgnoreCase
public boolean getIgnoreCase()
- Return true if we should ignore case when matching.
match
protected boolean match(java.lang.String s)