Package org.ametys.cms.search.query
Class OrQuery
- java.lang.Object
-
- org.ametys.cms.search.query.OrQuery
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
-
Constructor Summary
Constructors Constructor Description OrQuery(Collection<Query> queries)
Build an OrQuery object.OrQuery(Query... queries)
Build an OrQuery object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_tagNameForToString()
The tag name fortoString(int)
debug method.String
build()
Build the solr query string representing the Query object.static Collector<Query,?,OrQuery>
collector()
boolean
equals(Object obj)
List<Query>
getQueries()
Get the list of queries in this "or".int
hashCode()
String
toString(int indent)
Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes
-
-
-
Constructor Detail
-
OrQuery
public OrQuery(Query... queries)
Build an OrQuery object.- Parameters:
queries
- the queries.
-
OrQuery
public OrQuery(Collection<Query> queries)
Build an OrQuery object.- Parameters:
queries
- the queries as a Collection.
-
-
Method Detail
-
getQueries
public List<Query> getQueries()
Get the list of queries in this "or".- Returns:
- the list of queries.
-
build
public String build() throws QuerySyntaxException
Description copied from interface:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
toString
public String toString(int indent)
Description copied from interface:Query
Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes
-
_tagNameForToString
protected String _tagNameForToString()
The tag name fortoString(int)
debug method.- Returns:
- The tag name for
toString(int)
debug method.
-
-