|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflworkers.java.XMLOutputSplitter
public class XMLOutputSplitter
A LocalWorker that facilitates in extracting information from the inner elements of an XML output from a SOAP based service that returns a complex type. Information stored within deeper elements can be retreived by adding additional XMLOutputSplitters.
| Field Summary |
|---|
| Fields inherited from interface org.embl.ebi.escience.scuflworkers.java.LocalWorker |
|---|
BINARY, BINARY_ARRAY, HTML, HTML_ARRAY, PNG_IMAGE, PNG_IMAGE_ARRAY, STRING, STRING_ARRAY, UNTYPED, UNTYPED_ARRAY |
| Constructor Summary | |
|---|---|
XMLOutputSplitter()
|
|
| Method Summary | |
|---|---|
void |
consumeXML(org.jdom.Element element)
Generates the TypeDescriptor structure, and then the relevant outputs from the XML element provided. |
boolean |
doesTypeContainCyclicReferences(OutputPort port)
Returns true if the given port maps to a complex type whose data structure contains cyclic references |
java.util.Map |
execute(java.util.Map inputMap)
Takes an XML input, and peels away the first layer and populates the outputs with the children of this layer. |
java.lang.String[] |
inputNames()
Get an array of the names of input ports for this processor |
java.util.List<InputPort> |
inputPorts(LocalServiceProcessor processor)
The InputPorts for this localworker, to be used by LocalServiceProcessor |
java.lang.String[] |
inputTypes()
Get an array of the string types for the inputs defined by the inputNames() method, these should probably use the constants defined in this interface but may use any valid Baclava data type specifier. |
static boolean |
isSplittable(OutputPort output)
Determines whether the given output port supports being splitted |
java.lang.String[] |
outputNames()
Names of the output ports |
java.util.List<OutputPort> |
outputPorts(LocalServiceProcessor processor)
The OutputPorts for this localworker, to be used by LocalServiceProcessor |
java.lang.String[] |
outputTypes()
Types of the output ports |
org.jdom.Element |
provideXML()
Generates the XML that describes the TypeDescriptor, and therefore the outputs for this worker, to allow it to be reconstructed using consumeXML. |
void |
setUpOutputs(OutputPort portToSplit)
Sets up the outputs for the worker based on the type descriptions of the OutputPort provided. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLOutputSplitter()
| Method Detail |
|---|
public java.lang.String[] inputNames()
LocalWorker
inputNames in interface LocalWorkerpublic java.lang.String[] inputTypes()
LocalWorker
inputTypes in interface LocalWorkerpublic java.lang.String[] outputNames()
LocalWorker
outputNames in interface LocalWorkerpublic java.lang.String[] outputTypes()
LocalWorker
outputTypes in interface LocalWorkerpublic boolean doesTypeContainCyclicReferences(OutputPort port)
port -
public static boolean isSplittable(OutputPort output)
input -
public void setUpOutputs(OutputPort portToSplit)
portToSplit - public void consumeXML(org.jdom.Element element)
consumeXML in interface XMLExtensiblepublic org.jdom.Element provideXML()
provideXML in interface XMLExtensible
public java.util.Map execute(java.util.Map inputMap)
throws TaskExecutionException
execute in interface LocalWorkerTaskExecutionException - thrown if there is an error during invocation of the task.
public java.util.List<InputPort> inputPorts(LocalServiceProcessor processor)
throws DuplicatePortNameException,
PortCreationException
LocalWorkerWithPorts
inputPorts in interface LocalWorkerWithPortsDuplicatePortNameException
PortCreationException
public java.util.List<OutputPort> outputPorts(LocalServiceProcessor processor)
throws DuplicatePortNameException,
PortCreationException
LocalWorkerWithPorts
outputPorts in interface LocalWorkerWithPortsDuplicatePortNameException
PortCreationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||