Class InheritedLabelQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.InheritedLabelQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
public class InheritedLabelQuery extends Object implements SearchQuery
Query for matching a singleLabelthat was inherited from a piece of parent content, for example, searching for comments attached to pages with a certain label
-
-
Constructor Summary
Constructors Constructor Description InheritedLabelQuery(Label label)Construct a LabelQuery directly from the Label instance to be searched forInheritedLabelQuery(String label)Construct a LabelQuery from a string representation of a label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)SearchQueryexpand()Expands this query into a composite query (that composes other queries).StringgetKey()StringgetLabelAsString()ListgetParameters()List of parameters asStrings orSearchQuerys.inthashCode()-
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 Detail
-
InheritedLabelQuery
public InheritedLabelQuery(String label)
Construct a LabelQuery from a string representation of a label.- Parameters:
label- a representations of a label. Can be namespaced.- See Also:
LabelParser
-
InheritedLabelQuery
public InheritedLabelQuery(Label label)
Construct a LabelQuery directly from the Label instance to be searched for- Parameters:
label- the label to search for
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
public List getParameters()
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
getLabelAsString
public String getLabelAsString()
-
expand
public SearchQuery expand()
Description copied from interface:SearchQueryExpands 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:
expandin interfaceExpandable<SearchQuery>- Specified by:
expandin interfaceSearchQuery- Returns:
- a query
-
-