org.embl.ebi.escience.baclava.factory
Class DataThingXMLFactory

java.lang.Object
  extended by org.embl.ebi.escience.baclava.factory.DataThingXMLFactory

public class DataThingXMLFactory
extends java.lang.Object

Performs the creation of XML elements from DataThing objects and the configuration of existing DataThing objects from an XML representation.

Author:
Tom Oinn

Field Summary
static org.jdom.Namespace namespace
          The namespace used in the XML representation of a DataThing object
 
Constructor Summary
DataThingXMLFactory()
           
 
Method Summary
static java.lang.Object configureDataThing(org.jdom.Element rootElement, DataThing theDataThing)
          Build a DataThing from the supplied Element object, the Element in this case is the 'myGridDataDocument' element.
static org.jdom.Document getDataDocument(java.util.Map dataThings)
          Return a Document from a Map of String to DataThing, this is the input and output document format for the workflow enactment engine.
static org.jdom.Element getElement(DataThing theDataThing)
          Return an XML Jdom Element object for the DataThing supplied as the argument
static java.util.Map<java.lang.String,DataThing> parseDataDocument(org.jdom.Document dataDocument)
          Parse a data document and return a Map of DataThing objects, the keys in the map being the string key attributes from the data document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

public static org.jdom.Namespace namespace
The namespace used in the XML representation of a DataThing object

Constructor Detail

DataThingXMLFactory

public DataThingXMLFactory()
Method Detail

getDataDocument

public static org.jdom.Document getDataDocument(java.util.Map dataThings)
Return a Document from a Map of String to DataThing, this is the input and output document format for the workflow enactment engine.


parseDataDocument

public static java.util.Map<java.lang.String,DataThing> parseDataDocument(org.jdom.Document dataDocument)
Parse a data document and return a Map of DataThing objects, the keys in the map being the string key attributes from the data document


configureDataThing

public static java.lang.Object configureDataThing(org.jdom.Element rootElement,
                                                  DataThing theDataThing)
Build a DataThing from the supplied Element object, the Element in this case is the 'myGridDataDocument' element.


getElement

public static org.jdom.Element getElement(DataThing theDataThing)
Return an XML Jdom Element object for the DataThing supplied as the argument