Class LabelQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.LabelQuery
- All Implemented Interfaces:
Expandable<SearchQuery>
,SearchQuery
Query for matching a single
Label
.-
Field Summary
Fields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST
-
Constructor Summary
ConstructorDescriptionLabelQuery
(@NonNull Label label) Construct a LabelQuery directly from the Label instance to be searched forLabelQuery
(String label) Construct a LabelQuery from a string representation of a label. -
Method Summary
Modifier and TypeMethodDescriptionboolean
expand()
Expands this query into a composite query (that composes other queries).getKey()
List of parameters asString
s orSearchQuery
s.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
Constructor Details
-
LabelQuery
Construct a LabelQuery from a string representation of a label.- Parameters:
label
- a representations of a label. Can be namespaced.- See Also:
-
LabelQuery
Construct a LabelQuery directly from the Label instance to be searched for- Parameters:
label
- the label to search for
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
getLabelAsString
-
expand
Description copied from interface:SearchQuery
Expands this query into a composite query (that composes other queries). By overriding this method, one can specify a new query that is composition of the behaviour of the composed queries.- Specified by:
expand
in interfaceExpandable<SearchQuery>
- Specified by:
expand
in interfaceSearchQuery
- Returns:
- a query
-
equals
-
hashCode
public int hashCode()
-