public abstract class StringTerm extends SearchTerm
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreCase
If true, case should be ignored during matching.
|
protected java.lang.String |
pattern
The pattern associated with this term.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StringTerm(java.lang.String pattern)
Constructor specifying a pattern.
|
protected |
StringTerm(java.lang.String pattern,
boolean ignoreCase)
Constructor specifying pattern and case sensitivity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
boolean |
getIgnoreCase()
Indicate if case should be ignored when matching.
|
java.lang.String |
getPattern()
Return the pattern associated with this term.
|
int |
hashCode() |
protected boolean |
match(java.lang.String match)
Determine if the pattern associated with this term is a substring of the
supplied String.
|
matchprotected boolean ignoreCase
protected java.lang.String pattern
protected StringTerm(java.lang.String pattern)
pattern - the pattern for this termprotected StringTerm(java.lang.String pattern,
boolean ignoreCase)
pattern - the pattern for this termignoreCase - if true, case should be ignored during matchingpublic java.lang.String getPattern()
public boolean getIgnoreCase()
protected boolean match(java.lang.String match)
match - the String to compare topublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object