org.embl.ebi.escience.scuflworkers
Interface XMLHandler

All Known Implementing Classes:
APIConsumerXMLHandler, APXMLHandler, BeanshellXMLHandler, BiomartXMLHandler, BiomobyObjectXMLHandler, BiomobyXMLHandler, BiomobyXMLHandler, BSFXMLHandler, InfernoXMLHandler, LocalServiceXMLHandler, MobyParseDatatypeXMLHandler, NotificationXMLHandler, RDFGeneratorXMLHandler, RservXMLHandler, RshellXMLHandler, SoaplabXMLHandler, StringConstantXMLHandler, TalismanXMLHandler, WorkflowXMLHandler, WSDLXMLHandler

public interface XMLHandler

Specifies the two methods that individual worker handlers must implement to allow store / load of processor objects to / from XML syntax.

Author:
Tom Oinn

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
 

Method Detail

elementForProcessor

org.jdom.Element elementForProcessor(Processor p)
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.


elementForFactory

org.jdom.Element elementForFactory(ProcessorFactory pf)
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.


getFactory

ProcessorFactory getFactory(org.jdom.Element specElement)
Create a new factory that will produces processors of the supplied spec when it's invoked


loadProcessorFromXML

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

Throws:
ProcessorCreationException
DuplicateProcessorNameException
XScuflFormatException