org.gcube.opensearch.opensearchlibrary.queryelements.extensions.geo
Class GeoQueryElementFactory

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.queryelements.extensions.geo.GeoQueryElementFactory
All Implemented Interfaces:
QueryElementFactory

public class GeoQueryElementFactory
extends Object
implements QueryElementFactory

A factory class for the construction of GeoQueryElement objects

Author:
gerasimos.farantatos

Constructor Summary
GeoQueryElementFactory(QueryElementFactory f)
          Creates a new instance of the factory
 
Method Summary
 GeoQueryElement newInstance(Element query, Map<String,String> nsPrefixes)
          Creates a new QueryElement object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoQueryElementFactory

public GeoQueryElementFactory(QueryElementFactory f)
Creates a new instance of the factory

Parameters:
f - The QueryElementFactory used to create Query elements which will be next in the chain of responsibility
Method Detail

newInstance

public GeoQueryElement newInstance(Element query,
                                   Map<String,String> nsPrefixes)
                            throws Exception
Creates a new QueryElement object

Specified by:
newInstance in interface QueryElementFactory
Parameters:
query - The Element corresponding to a query element contained in a description document
Returns:
A new QueryElement object
Throws:
Exception - If an error occurred during construction
See Also:
org.gcube.opensearch.opensearchlibrary.queryelements.QueryElementFactory#newInstance(Element)


Copyright © 2013. All Rights Reserved.