net.sourceforge.taverna.scuflworkers.ncbi
Class PubMedEFetchWorker

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

public class PubMedEFetchWorker
extends AbstractEFetchWorker

This class is used to fetch pubmed articles in XML form. Use this worker only if you already know the pubmed id.

Version:
$Revision: 1.2 $
Author:
Mark

Field Summary
 
Fields inherited from class net.sourceforge.taverna.scuflworkers.ncbi.AbstractEFetchWorker
GET_TRANSMITTER, NEWLINE, POST_TRANSMITTER
 
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
PubMedEFetchWorker()
           
 
Method Summary
 java.util.Map execute(java.util.Map inputMap)
          Given a Map of DataThing objects as input, invoke the underlying logic of the task and return a map of DataThing objects as outputs, with the port names acting as keys in the map in both cases.
 java.lang.String[] inputNames()
          Get an array of the names of input ports for this processor
 java.lang.String[] inputTypes()
          Get an array of the string types for the inputs defined by the inputNames() method, these should probably use the constants defined in this interface but may use any valid Baclava data type specifier.
 
Methods inherited from class net.sourceforge.taverna.scuflworkers.ncbi.AbstractEFetchWorker
outputNames, outputTypes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubMedEFetchWorker

public PubMedEFetchWorker()
See Also:
LocalWorker.execute(java.util.Map)
Method Detail

execute

public java.util.Map execute(java.util.Map inputMap)
                      throws TaskExecutionException
Description copied from interface: LocalWorker
Given a Map of DataThing objects as input, invoke the underlying logic of the task and return a map of DataThing objects as outputs, with the port names acting as keys in the map in both cases.

Specified by:
execute in interface LocalWorker
Specified by:
execute in class AbstractEFetchWorker
Throws:
TaskExecutionException - thrown if there is an error during invocation of the task.
See Also:
AbstractNCBIWorker.execute(java.util.Map)

inputNames

public java.lang.String[] inputNames()
Description copied from interface: LocalWorker
Get an array of the names of input ports for this processor

Specified by:
inputNames in interface LocalWorker
Specified by:
inputNames in class AbstractEFetchWorker
See Also:
AbstractEFetchWorker.inputNames()

inputTypes

public java.lang.String[] inputTypes()
Description copied from interface: LocalWorker
Get an array of the string types for the inputs defined by the inputNames() method, these should probably use the constants defined in this interface but may use any valid Baclava data type specifier.

Specified by:
inputTypes in interface LocalWorker
Specified by:
inputTypes in class AbstractEFetchWorker
See Also:
AbstractEFetchWorker.inputTypes()