public class ContentLanguageQuery extends Object implements Query
Query
testing the content language.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private Query.LogicalOperator |
_logicalOperator
The logical operator between the values.
|
private Query.Operator |
_operator
The operator (can only be EQ or NE).
|
private String[] |
_values
The language values to test.
|
Constructor and Description |
---|
ContentLanguageQuery(Query.Operator operator,
Query.LogicalOperator logicalOperator,
String... values)
Build a ContentLanguageQuery.
|
ContentLanguageQuery(Query.Operator operator,
String... values)
Build a ContentLanguageQuery.
|
ContentLanguageQuery(Query.Operator operator,
String value)
Build a ContentLanguageQuery.
|
ContentLanguageQuery(String... values)
Build a ContentLanguageQuery.
|
ContentLanguageQuery(String value)
Build a ContentLanguageQuery.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
Query.LogicalOperator |
getLogicalOperator()
Get the logical operator.
|
Query.Operator |
getOperator()
Get the operator.
|
String[] |
getValues()
Get the values.
|
int |
hashCode() |
private Query.Operator _operator
private Query.LogicalOperator _logicalOperator
public ContentLanguageQuery(String value)
value
- the language equality to test.public ContentLanguageQuery(String... values)
values
- the languages to test.public ContentLanguageQuery(Query.Operator operator, String value)
operator
- the operator.value
- the language code.public ContentLanguageQuery(Query.Operator operator, String... values)
operator
- the operator.values
- the language codes.public ContentLanguageQuery(Query.Operator operator, Query.LogicalOperator logicalOperator, String... values)
operator
- the operator.logicalOperator
- the logical operator.values
- the language codes.public Query.Operator getOperator()
public Query.LogicalOperator getLogicalOperator()
public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.