net.sourceforge.taverna.scuflworkers.ncbi
Class PubMedSearchWorker

java.lang.Object
  extended by net.sourceforge.taverna.scuflworkers.ncbi.AbstractNCBIWorker
      extended by net.sourceforge.taverna.scuflworkers.ncbi.PubMedSearchWorker
All Implemented Interfaces:
LocalWorker

public class PubMedSearchWorker
extends AbstractNCBIWorker

This class downloads PubMed records in XML format. Since NCBI does not currently support a pure XML

Version:
$Revision: 1.2 $
Author:
mfortner

Field Summary
 
Fields inherited from class net.sourceforge.taverna.scuflworkers.ncbi.AbstractNCBIWorker
NEWLINE
 
Fields inherited from interface org.embl.ebi.escience.scuflworkers.java.LocalWorker
BINARY, BINARY_ARRAY, HTML, HTML_ARRAY, PNG_IMAGE, PNG_IMAGE_ARRAY, STRING, STRING_ARRAY, UNTYPED, UNTYPED_ARRAY
 
Constructor Summary
PubMedSearchWorker()
           
 
Method Summary
 java.util.Map execute(java.util.Map inputMap)
          This is the main method of the class.
 java.lang.String[] inputNames()
          This method returns an array of names of input values.
 java.lang.String[] inputTypes()
          This method returns an array of input mimetypes.
 
Methods inherited from class net.sourceforge.taverna.scuflworkers.ncbi.AbstractNCBIWorker
outputNames, outputTypes, setStreamProcessor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubMedSearchWorker

public PubMedSearchWorker()
Method Detail

execute

public java.util.Map execute(java.util.Map inputMap)
                      throws TaskExecutionException
Description copied from class: AbstractNCBIWorker
This is the main method of the class.

Specified by:
execute in interface LocalWorker
Specified by:
execute in class AbstractNCBIWorker
Parameters:
inputMap - A map of values to be used by the worker class.
Throws:
TaskExecutionException - thrown if there is an error during invocation of the task.

inputNames

public java.lang.String[] inputNames()
Description copied from class: AbstractNCBIWorker
This method returns an array of names of input values. These values are used as keys in the inputMap.

Specified by:
inputNames in interface LocalWorker
Overrides:
inputNames in class AbstractNCBIWorker

inputTypes

public java.lang.String[] inputTypes()
Description copied from class: AbstractNCBIWorker
This method returns an array of input mimetypes.

Specified by:
inputTypes in interface LocalWorker
Overrides:
inputTypes in class AbstractNCBIWorker