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

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

public class MultiTextFieldQuery
extends java.lang.Object
implements SearchQuery

Represents a query against multiple fields.


Constructor Summary
MultiTextFieldQuery(java.lang.String query, java.util.Set<java.lang.String> fields, BooleanOperator operator)
          Constructs a multi-field query with the specified query, fields and operator.
MultiTextFieldQuery(java.lang.String query, java.lang.String... fields)
          Constructs a multi-field query with the operator set to BooleanOperator.AND.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Set<java.lang.String> getFields()
           
 java.lang.String getKey()
           
 BooleanOperator getOperator()
           
 java.util.List getParameters()
          List of parameters as Strings or SearchQuerys.
 java.lang.String getQuery()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTextFieldQuery

public MultiTextFieldQuery(java.lang.String query,
                           java.util.Set<java.lang.String> fields,
                           BooleanOperator operator)
Constructs a multi-field query with the specified query, fields and operator.

Parameters:
query -
fields -
operator -

MultiTextFieldQuery

public MultiTextFieldQuery(java.lang.String query,
                           java.lang.String... fields)
Constructs a multi-field query with the operator set to BooleanOperator.AND.

Parameters:
query - the query
fields - the fields to query against
Method Detail

getKey

public java.lang.String getKey()
Specified by:
getKey in interface SearchQuery
Returns:
the plugin key

getQuery

public java.lang.String getQuery()

getFields

public java.util.Set<java.lang.String> getFields()

getOperator

public BooleanOperator getOperator()

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.

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-2014 Atlassian. All Rights Reserved.