com.atlassian.confluence.search.v2.query
Class LabelQuery

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.LabelQuery
All Implemented Interfaces:
SearchQuery

public class LabelQuery
extends Object
implements SearchQuery

Query for matching a single Label.


Constructor Summary
LabelQuery(Label label)
          Construct a LabelQuery directly from the Label instance to be searched for
LabelQuery(String label)
          Construct a LabelQuery from a string representation of a label.
 
Method Summary
 boolean equals(Object obj)
           
 String getKey()
           
 String getLabelAsString()
           
 List getParameters()
          List of parameters as Strings or SearchQuerys.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelQuery

public LabelQuery(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

LabelQuery

public LabelQuery(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:
getKey in interface SearchQuery
Returns:
the plugin key

getParameters

public List getParameters()
Description copied from interface: SearchQuery
List of parameters as Strings or SearchQuerys.

Specified by:
getParameters in interface SearchQuery
Returns:
Strings or SearchQuerys.

getLabelAsString

public String getLabelAsString()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.