|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchQuery
Utility class to help with creating a query string for the
SearchProvider.search(String,String) method.
SearchQueryParser| Field Summary | |
|---|---|
static String |
PARAMETER_SEPARATOR
The parameter separator value |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final String PARAMETER_SEPARATOR
| Method Detail |
|---|
SearchQuery setParameter(String name,
String value)
name - the search parameter namevalue - the search parameter value
String getParameter(String name)
name - the parameter name
SearchQuery append(String query)
query - un-encoded query
String buildQueryString()
SearchProvider.search(String,String) method. queryString
consists of searchString and parameters.
String getSearchString()
buildQueryString() without parameters and
not url-encoded
int getParameter(String name,
int defaultValue)
defaultValue.
name - The parameter namedefaultValue - The default value if that parameter is not specified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||