org.gcube.opensearch.opensearchlibrary.urlelements
Class ExtendedURLElementFactory

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

public class ExtendedURLElementFactory
extends Object
implements URLElementFactory

A factory class for the construction of ExtendedURLElement objects

Author:
gerasimos.farantatos

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

Constructor Detail

ExtendedURLElementFactory

public ExtendedURLElementFactory(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 ExtendedURLElement newInstance(Element url,
                                      Map<String,String> nsPrefixes)
                               throws 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:
Exception - If an error occurred during construction
See Also:
org.gcube.opensearch.opensearchlibrary.urlelements.URLElementFactory#newInstance(Element, DescriptionDocument)


Copyright © 2013. All Rights Reserved.