public class SiteTypeQuery extends Object implements Query
Query
testing the site type property.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private Query.Operator |
_operator |
private List<String> |
_types |
Constructor and Description |
---|
SiteTypeQuery()
Build a SiteTypeQuery to test if the site type property exits
|
SiteTypeQuery(Collection<String> types)
Build a SiteTypeQuery to test if the site type property is equals to one of the given site types
|
SiteTypeQuery(Query.Operator operator,
Collection<String> types)
Build a SiteTypeQuery.
|
SiteTypeQuery(Query.Operator operator,
String... types)
Build a SiteTypeQuery to test if the site type property is equals or different to one of the given site types
|
SiteTypeQuery(String... types)
Build a SiteTypeQuery to test if the site type property is equals to one of the given site type
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
Query.Operator |
getOperator()
Get the operator.
|
List<String> |
getTypes()
Get the site types.
|
int |
hashCode() |
private Query.Operator _operator
public SiteTypeQuery()
public SiteTypeQuery(String... types)
types
- the site type.public SiteTypeQuery(Collection<String> types)
types
- the site types.public SiteTypeQuery(Query.Operator operator, String... types)
operator
- the operator (equals ot not-equals)types
- the site types.public SiteTypeQuery(Query.Operator operator, Collection<String> types)
operator
- the operator.types
- the site types.public Query.Operator getOperator()
public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.