Package net.sf.taverna.t2.baclava

Examples of net.sf.taverna.t2.baclava.DataThing


        for (Entry<String, Object> entry : inputData.entrySet()) {
            String portName = entry.getKey();
            Object value = entry.getValue();
            Object dereferencedInput = dereferenceInput(portName, value);

            DataThing thing = DataThingFactory.bake(dereferencedInput);

            Element dataThingElement = new Element("dataThing", NAMESPACE);
            dataThingElement.setAttribute("key", portName);
            dataThingElement.addContent(thing.getElement());
            rootElement.addContent(dataThingElement);
        }

        XMLOutputter xo = new XMLOutputter(Format.getPrettyFormat());
        // PrintWriter out = new PrintWriter(new FileWriter(inputFile));
View Full Code Here


                    for (Entry<String, DataThing> outputDataThing : outputDataThings.entrySet()) {
                        outputData.put(outputDataThing.getKey(), outputDataThing.getValue().getDataObject());
                    }
                } else {
                    for (String portName : outputPorts) {
                        DataThing outputDataThing = outputDataThings.get(portName);
                        if (outputDataThing == null) {
                            outputData.put(portName, null);
                        } else {
                            outputData.put(portName, outputDataThing.getDataObject());
                        }
                    }
                }

            } catch (JDOMException e) {
View Full Code Here

TOP

Related Classes of net.sf.taverna.t2.baclava.DataThing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.