|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.opensearch.opensearchoperator.QueryParser
public class QueryParser
An OpenSearch query parser, responsible for parsing and processing an OpenSearch query and a set of fixed parameters. After processing, a mapping of parameter names and values both for query and fixed parameters, as well as a set of all namespaces present in the parameters are available
| Constructor Summary | |
|---|---|
QueryParser(String queryString,
String[] fixedParams)
Creates a new instance and processes the query and fixed parameter strings |
|
| Method Summary | |
|---|---|
Map<String,String> |
getFixedParamsMap()
Retrieves all fixed parameter name-value mappings |
String |
getFixedTerms()
Retrieves the fixed parameter corresponding to the searchTerms standard OpenSearch parameter |
Set<String> |
getNamespaces()
Retrieves all namespaces present in the OpenSearch query and the fixed parameters |
Map<String,String> |
getParams()
Retrieves all parameter name-value mappings |
String |
getTerms()
Retrieves the search terms, as specified by the searchTerms standard OpenSearch parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryParser(String queryString,
String[] fixedParams)
throws UnsupportedEncodingException
queryString - The OpenSearch operator query stringfixedParams - The fixed parameters array
UnsupportedEncodingException - If the encoding used to decode the encoded namespace prefixes is not supported| Method Detail |
|---|
public String getTerms()
public Map<String,String> getParams()
public String getFixedTerms()
public Map<String,String> getFixedParamsMap()
public Set<String> getNamespaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||