org.gcube.opensearch.opensearchlibrary.queryelements.extensions.time
Class TimeQueryElement

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.queryelements.QueryElementDecorator
      extended by 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

Constructor Summary
TimeQueryElement(org.w3c.dom.Element query, java.util.Map<java.lang.String,java.lang.String> nsPrefixes, QueryElement el)
          Creates a new instance
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getQueryParameters()
          Returns all parameters contained in the query element along with their corresponding values
 void parse()
          Processes a query element
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeQueryElement

public TimeQueryElement(org.w3c.dom.Element query,
                        java.util.Map<java.lang.String,java.lang.String> nsPrefixes,
                        QueryElement el)
Creates a new instance

Parameters:
query - A DOM element that will be processed in order to create a BasicQueryElement instance
Method Detail

parse

public void parse()
           throws java.lang.Exception
Processes a query element

Specified by:
parse in interface QueryElement
Overrides:
parse in class QueryElementDecorator
Throws:
java.lang.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 java.util.Map<java.lang.String,java.lang.String> getQueryParameters()
                                                                    throws java.lang.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:
java.lang.Exception - In case of error
See Also:
QueryElement.getQueryParameters()