|
||||||||||
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 java.lang.String |
PARAMETER_SEPARATOR
The parameter separator value |
Method Summary | |
---|---|
SearchQuery |
append(java.lang.String query)
Appends string query to current query object. |
java.lang.String |
buildQueryString()
Builds a url-encoded queryString to use with the SearchProvider.search(String,String) method. |
java.lang.String |
getParameter(java.lang.String name)
Returns value of the parameter |
int |
getParameter(java.lang.String name,
int defaultValue)
Convenient method to return integer value of parameter. |
java.lang.String |
getSearchString()
|
SearchQuery |
setParameter(java.lang.String name,
java.lang.String value)
Sets an arbitrary search parameter to the query string. |
Field Detail |
---|
static final java.lang.String PARAMETER_SEPARATOR
Method Detail |
---|
SearchQuery setParameter(java.lang.String name, java.lang.String value)
name
- the search parameter namevalue
- the search parameter value
java.lang.String getParameter(java.lang.String name)
name
- the parameter name
SearchQuery append(java.lang.String query)
query
- un-encoded query
java.lang.String buildQueryString()
SearchProvider.search(String,String)
method. queryString
consists of searchString and parameters.
java.lang.String getSearchString()
buildQueryString()
without parameters and
not url-encodedint getParameter(java.lang.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 |