org.gcube.opensearch.opensearchlibrary.queryelements.extensions.sru
Class SRUQueryElementFactory

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

public class SRUQueryElementFactory
extends java.lang.Object
implements QueryElementFactory

A factory class for the construction of SRUQueryElement objects

Author:
gerasimos.farantatos

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

Constructor Detail

SRUQueryElementFactory

public SRUQueryElementFactory(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 SRUQueryElement newInstance(org.w3c.dom.Element query,
                                   java.util.Map<java.lang.String,java.lang.String> nsPrefixes)
                            throws java.lang.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:
java.lang.Exception - If an error occurred during construction
See Also:
org.gcube.opensearch.opensearchlibrary.queryelements.QueryElementFactory#newInstance(Element)