java.lang.Object | |
↳ | com.atlassian.confluence.macro.query.BooleanQueryFactory |
Container class for the results of a SearchQueryParser
operation,
providing a mutable version of the BooleanQuery
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an empty
BooleanQueryFactory . | |||||||||||
Constructs a
BooleanQueryFactory with the specified
SearchQueries as initial values. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified
BooleanQueryFactory to the "must match"
criteria after calling toBooleanQuery() on it. | |||||||||||
Adds the specified
Collection<SearchQuery> to the "must match"
criteria. | |||||||||||
Adds the specified
SearchQuery to the "must match" criteria. | |||||||||||
Adds the specified
Collection<SearchQuery> to the "must not
match" criteria. | |||||||||||
Adds the specified
BooleanQueryFactory to the "must not match"
criteria after calling toBooleanQuery() on it. | |||||||||||
Adds the specified
SearchQuery to the "must not match" criteria. | |||||||||||
Adds the specified
SearchQuery to the "should match" criteria. | |||||||||||
Adds the specified
Collection<SearchQuery> to the "should match"
criteria. | |||||||||||
Adds the specified
BooleanQueryFactory to the "should match"
criteria after calling toBooleanQuery() on it. | |||||||||||
Returns true if the current
BooleanQueryFactory is empty; that
is, if no SearchQueries have been added to it. | |||||||||||
Merges the specified
BooleanQueryFactory with the current one. | |||||||||||
Returns a
BooleanQuery instance using the current state of this
BooleanQueryFactory . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs an empty BooleanQueryFactory
.
Constructs a BooleanQueryFactory
with the specified
SearchQueries
as initial values.
must | queries that must match |
---|---|
should | queries that should match |
mustNot | queries that must not match |
Adds the specified BooleanQueryFactory
to the "must match"
criteria after calling toBooleanQuery()
on it. Empty or null
factories are silently ignored.
factory | the BooleanQueryFactory to add |
---|
Adds the specified Collection<SearchQuery>
to the "must match"
criteria.
queries | the SearchQueries to add
|
---|
Adds the specified SearchQuery
to the "must match" criteria.
query | the SearchQuery to add
|
---|
Adds the specified Collection<SearchQuery>
to the "must not
match" criteria.
queries | the SearchQueries to add
|
---|
Adds the specified BooleanQueryFactory
to the "must not match"
criteria after calling toBooleanQuery()
on it. Empty or null
factories are silently ignored.
factory | the BooleanQueryFactory to add |
---|
Adds the specified SearchQuery
to the "must not match" criteria.
query | the SearchQuery to add
|
---|
Adds the specified SearchQuery
to the "should match" criteria.
query | the SearchQuery to add
|
---|
Adds the specified Collection<SearchQuery>
to the "should match"
criteria.
queries | the SearchQueries to add
|
---|
Adds the specified BooleanQueryFactory
to the "should match"
criteria after calling toBooleanQuery()
on it. Empty or null
factories are silently ignored.
factory | the BooleanQueryFactory to add |
---|
Returns true if the current BooleanQueryFactory
is empty; that
is, if no SearchQueries
have been added to it.
BooleanQueryFactory
is empty.Merges the specified BooleanQueryFactory
with the current one.
result | the BooleanQueryFactory to merge |
---|
IllegalArgumentException | if result is null |
---|
Returns a BooleanQuery
instance using the current state of this
BooleanQueryFactory
.
BooleanQuery
instance reflecting the current state