public class SitemapQuery extends Object implements Query
Query
testing the sitemap property.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private List<String> |
_names |
private Query.Operator |
_operator |
Constructor and Description |
---|
SitemapQuery(Collection<String> names)
Build a SitemapQuery.
|
SitemapQuery(Query.Operator operator,
Collection<String> names)
Build a SitemapQuery.
|
SitemapQuery(Query.Operator operator,
String... names)
Build a SitemapQuery.
|
SitemapQuery(String... names)
Build a SitemapQuery.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
List<String> |
getNames()
Get the site names.
|
Query.Operator |
getOperator()
Get the operator.
|
int |
hashCode() |
private Query.Operator _operator
public SitemapQuery(String... names)
names
- the site names.public SitemapQuery(Collection<String> names)
names
- the site names.public SitemapQuery(Query.Operator operator, String... names)
operator
- the operator.names
- the site names.public SitemapQuery(Query.Operator operator, Collection<String> names)
operator
- the operator.names
- the site names.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.