public static class FullTextSearch.SimpleTerm extends Object implements FullTextSearch.Term
FullTextSearch.Term
that represents a single search term. The term may be comprised of multiple words.Constructor and Description |
---|
SimpleTerm(String value)
Create a simple term with the value and whether the term is excluded or included.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsWildcards()
Return whether this term contains any unescaped wildcard characters (e.g., one of '*', '?'
|
boolean |
equals(Object obj) |
String |
getValue()
Get the value of this term.
|
String[] |
getValues()
Get the values of this term if the term is quoted.
|
int |
hashCode() |
boolean |
isQuotingRequired()
Get whether this term needs to be quoted because it consists of multiple words.
|
boolean |
matches(String value)
Checks if the term matches (from a FTS perspective) the given value.
|
String |
toString() |
public SimpleTerm(String value)
value
- the value that makes up the termpublic String getValue()
quotes
.public String[] getValues()
public boolean isQuotingRequired()
public boolean containsWildcards()
public boolean matches(String value)
FullTextSearch.Term
matches
in interface FullTextSearch.Term
value
- a non-null stringtrue
if the term matches the value, false
otherwiseCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.