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 java.lang.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(java.lang.String label)
          Construct a LabelQuery from a string representation of a label.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getKey()
           
 java.lang.String getLabelAsString()
           
 java.util.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(java.lang.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 java.lang.String getKey()
Specified by:
getKey in interface SearchQuery
Returns:
the plugin key

getParameters

public java.util.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 java.lang.String getLabelAsString()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2010 Atlassian. All Rights Reserved.