public abstract class StringTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreCase
If true, case should be ignored during matching.
|
protected String |
pattern
The pattern associated with this term.
|
Modifier | Constructor and Description |
---|---|
protected |
StringTerm(String pattern)
Constructor specifying a pattern.
|
protected |
StringTerm(String pattern,
boolean ignoreCase)
Constructor specifying pattern and case sensitivity.
|
Modifier and Type | Method and Description |
---|---|
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.
|
match
protected boolean ignoreCase
protected String pattern
protected StringTerm(String pattern)
pattern
- the pattern for this termprotected StringTerm(String pattern, boolean ignoreCase)
pattern
- the pattern for this termignoreCase
- if true, case should be ignored during matchingpublic String getPattern()
public boolean getIgnoreCase()
protected boolean match(String match)
match
- the String to compare toCopyright © 2013. All rights reserved.