public class TextConstraint extends Constraint
| Modifier and Type | Class and Description |
|---|---|
static class |
TextConstraint.PatternType |
Constraint.ConstraintType| Constructor and Description |
|---|
TextConstraint(List<String> text,
boolean caseSensitive,
String... languages) |
TextConstraint(List<String> text,
String... languages)
Creates a TextConstraint for multiple texts and languages.
|
TextConstraint(List<String> text,
TextConstraint.PatternType wildcardType,
boolean caseSensitive,
String... languages) |
TextConstraint(String text,
boolean caseSensitive,
String... languages) |
TextConstraint(String text,
String... languages)
Creates a TextConstraint for a text and languages.
|
TextConstraint(String text,
TextConstraint.PatternType wildcardType,
boolean caseSensitive,
String... languages) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLanguages()
The set of languages for this query.
|
TextConstraint.PatternType |
getPatternType()
The pattern type to be used for this query.
|
String |
getText()
Deprecated.
|
List<String> |
getTexts()
Getter for the text constraints.
|
boolean |
isCaseSensitive()
If the query is case sensitive
|
Boolean |
isProximityRanking()
Getter for the Term Proximity state.
|
void |
setProximityRanking(boolean state)
Setter for the proximity ranking state.
|
String |
toString() |
getBoost, getType, setBoostpublic TextConstraint(List<String> text, String... languages)
text - the texts or null to search for any text in active languageslanguages - the set of active languagespublic TextConstraint(String text, String... languages)
text - the text or null to search for any text in active languageslanguages - the set of active languages.public TextConstraint(String text, TextConstraint.PatternType wildcardType, boolean caseSensitive, String... languages)
public TextConstraint(List<String> text, TextConstraint.PatternType wildcardType, boolean caseSensitive, String... languages)
public final TextConstraint.PatternType getPatternType()
public final Set<String> getLanguages()
public final boolean isCaseSensitive()
public final List<String> getTexts()
@Deprecated public final String getText()
public Boolean isProximityRanking()
null if not specifiedpublic void setProximityRanking(boolean state)
state - the proximity ranking state to setpublic String toString()
toString in class ConstraintCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.