nl.utwente.ewi.hmi.taverna.scuflworkers.rshell
Class RshellXMLHandler

java.lang.Object
  extended by nl.utwente.ewi.hmi.taverna.scuflworkers.rshell.RshellXMLHandler
All Implemented Interfaces:
XMLHandler

public class RshellXMLHandler
extends java.lang.Object
implements XMLHandler

Handle XML store and load for the Rserv processor

Author:
Stian Soiland, Ingo Wassink

Constructor Summary
RshellXMLHandler()
           
 
Method Summary
 org.jdom.Element elementForFactory(ProcessorFactory processorFactory)
          Method for getting the XML element of the prototype processor
 org.jdom.Element elementForProcessor(Processor processor)
          Method for getting the xml element for the processor
 ProcessorFactory getFactory(org.jdom.Element processElement)
          Method for getting a factory for an Element specification of a processor
 Processor loadProcessorFromXML(org.jdom.Element processorElement, ScuflModel model, java.lang.String name)
          Method for loading an xml processor from XML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RshellXMLHandler

public RshellXMLHandler()
Method Detail

elementForFactory

public org.jdom.Element elementForFactory(ProcessorFactory processorFactory)
Method for getting the XML element of the prototype processor

Specified by:
elementForFactory in interface XMLHandler
Parameters:
processorFactory - of the processor
Returns:
the XML element

getFactory

public ProcessorFactory getFactory(org.jdom.Element processElement)
Method for getting a factory for an Element specification of a processor

Specified by:
getFactory in interface XMLHandler
Parameters:
processElement - the XML element defining the prototype
Returns:
the processor factory

elementForProcessor

public org.jdom.Element elementForProcessor(Processor processor)
Method for getting the xml element for the processor

Specified by:
elementForProcessor in interface XMLHandler
Parameters:
processor - the processor to export to an xml element
Returns:
the XML rshell element

loadProcessorFromXML

public Processor loadProcessorFromXML(org.jdom.Element processorElement,
                                      ScuflModel model,
                                      java.lang.String name)
                               throws ProcessorCreationException,
                                      DuplicateProcessorNameException,
                                      XScuflFormatException
Method for loading an xml processor from XML

Specified by:
loadProcessorFromXML in interface XMLHandler
Parameters:
processorElement - the XML processor element
model - the scufl model where the process belongs to
name - the name of the processor
Returns:
the processor element
Throws:
ProcessorCreationException
DuplicateProcessorNameException
XScuflFormatException