org.gcube.opensearch.opensearchlibrary.queryelements.extensions.time
Class TimeQueryElement
java.lang.Object
org.gcube.opensearch.opensearchlibrary.queryelements.QueryElementDecorator
org.gcube.opensearch.opensearchlibrary.queryelements.extensions.time.TimeQueryElement
- All Implemented Interfaces:
- QueryElement
public class TimeQueryElement
- extends QueryElementDecorator
Query element class implementing the QueryElement interface, which provides functionality
for OpenSearch Geo extension query elements
- Author:
- gerasimos.farantatos
| Methods inherited from class org.gcube.opensearch.opensearchlibrary.queryelements.QueryElementDecorator |
describesExampleQuery, getCount, getInputEncoding, getLanguage, getOutputEncoding, getRole, getSearchTerms, getStartIndex, getStartPage, getTitle, getTotalResults, isRoleSupported |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
role
protected String role
TimeQueryElement
public TimeQueryElement(Element query,
Map<String,String> nsPrefixes,
QueryElement el)
- Creates a new instance
- Parameters:
query - A DOM element that will be processed in order to create a BasicQueryElement instance
parse
public void parse()
throws Exception
- Processes a query element
- Specified by:
parse in interface QueryElement- Overrides:
parse in class QueryElementDecorator
- Throws:
Exception - If the query element is not valid according to the OpenSearch specification or in case of other error- See Also:
QueryElement.parse()
getQueryParameters
public Map<String,String> getQueryParameters()
throws Exception
- Returns all parameters contained in the query element along with their corresponding values
- Specified by:
getQueryParameters in interface QueryElement- Overrides:
getQueryParameters in class QueryElementDecorator
- Returns:
- All parameters-value pairs contained in the query element
- Throws:
Exception - In case of error- See Also:
QueryElement.getQueryParameters()
Copyright © 2013. All Rights Reserved.