org.gcube.opensearch.opensearchlibrary.urlelements.extensions.geo
Class GeoURLElementFactory

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.urlelements.extensions.geo.GeoURLElementFactory
All Implemented Interfaces:
URLElementFactory

public class GeoURLElementFactory
extends java.lang.Object
implements URLElementFactory

A factory class for the construction of GeoURLElement objects

Author:
gerasimos.farantatos

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

Constructor Detail

GeoURLElementFactory

public GeoURLElementFactory(URLElementFactory f)
Creates a new instance of the factory

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

newInstance

public GeoURLElement newInstance(org.w3c.dom.Element url,
                                 java.util.Map<java.lang.String,java.lang.String> nsPrefixes)
                          throws java.lang.Exception
Creates a new URLElement object

Specified by:
newInstance in interface URLElementFactory
Parameters:
url - An Element instance containing the URL element to be processed
Returns:
A new URLElement object
Throws:
java.lang.Exception - If an error occurred during construction
See Also:
org.gcube.opensearch.opensearchlibrary.urlelements.URLElementFactory#newInstance(Element, DescriptionDocument)