public interface SearchQuery
SearchProvider.search(String,String)
method.
Query strings will have the form:
SearchQueryParser
Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_SEPARATOR
The parameter separator value
|
Modifier and Type | Method and Description |
---|---|
SearchQuery |
append(String query)
Appends string query to current query object.
|
String |
buildQueryString()
Builds a url-encoded queryString to use with the
SearchProvider.search(String,String) method. |
String |
getParameter(String name)
Returns value of the parameter
|
int |
getParameter(String name,
int defaultValue)
Convenient method to return integer value of parameter.
|
String |
getSearchString() |
SearchQuery |
setParameter(String name,
String value)
Sets an arbitrary search parameter to the query string.
|
static final String PARAMETER_SEPARATOR
SearchQuery setParameter(String name, String value)
name
- the search parameter namevalue
- the search parameter valueString getParameter(String name)
name
- the parameter nameSearchQuery append(String query)
query
- un-encoded queryString buildQueryString()
SearchProvider.search(String,String)
method. queryString
consists of searchString and parameters.String getSearchString()
buildQueryString()
without parameters and
not url-encodedint getParameter(String name, int defaultValue)
defaultValue
.name
- The parameter namedefaultValue
- The default value if that parameter is not specifiedCopyright © 2015 Atlassian. All rights reserved.