org.embl.ebi.escience.scuflworkers.beanshell
Class BeanshellXMLHandler

java.lang.Object
  extended by org.embl.ebi.escience.scuflworkers.beanshell.BeanshellXMLHandler
All Implemented Interfaces:
XMLHandler

public class BeanshellXMLHandler
extends java.lang.Object
implements XMLHandler

Handles XML store and load for the beanshell processor

Author:
Tom Oinn, Stian Soiland

Constructor Summary
BeanshellXMLHandler()
           
 
Method Summary
 org.jdom.Element elementForFactory(ProcessorFactory pf)
          Return the spec element for a given ProcessorFactory.
 org.jdom.Element elementForProcessor(Processor p)
          Return the spec element, that is to say the processor specific portion of the processor element.
 ProcessorFactory getFactory(org.jdom.Element specElement)
          Create a new factory that will produces processors of the supplied spec when it's invoked
 Processor loadProcessorFromXML(org.jdom.Element processorNode, ScuflModel model, java.lang.String name)
          Create a new processor from the given chunk of XML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanshellXMLHandler

public BeanshellXMLHandler()
Method Detail

elementForProcessor

public org.jdom.Element elementForProcessor(Processor p)
Description copied from interface: XMLHandler
Return the spec element, that is to say the processor specific portion of the processor element. For example, the soaplab implementation of this method returns the element rooted at the 'soaplabwsdl' element.

Specified by:
elementForProcessor in interface XMLHandler

elementForFactory

public org.jdom.Element elementForFactory(ProcessorFactory pf)
Description copied from interface: XMLHandler
Return the spec element for a given ProcessorFactory. In reality each XML handler will be given only a particular subclass of the ProcessorFactory to deal with so you can reasonably cast it to your specific implementation straight off to get factory specific data out.

Specified by:
elementForFactory in interface XMLHandler

getFactory

public ProcessorFactory getFactory(org.jdom.Element specElement)
Description copied from interface: XMLHandler
Create a new factory that will produces processors of the supplied spec when it's invoked

Specified by:
getFactory in interface XMLHandler

loadProcessorFromXML

public Processor loadProcessorFromXML(org.jdom.Element processorNode,
                                      ScuflModel model,
                                      java.lang.String name)
                               throws ProcessorCreationException,
                                      DuplicateProcessorNameException,
                                      XScuflFormatException
Description copied from interface: XMLHandler
Create a new processor from the given chunk of XML

Specified by:
loadProcessorFromXML in interface XMLHandler
Throws:
ProcessorCreationException
DuplicateProcessorNameException
XScuflFormatException