|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflworkers.java.SliceList
public class SliceList
Return a sublist of a list.
The depth can be set with setDepth(int) - as done through the
SliceListEditAction.
| 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 | |
|---|---|
SliceList()
|
|
| Method Summary | |
|---|---|
void |
consumeXML(org.jdom.Element element)
Extract the <slicelist depth="X" /> number from the |
java.util.Map<java.lang.String,DataThing> |
execute(java.util.Map inputs)
Copy each entry in the input list into the output list iff it matches the supplied regular expression. |
int |
getDepth()
Get the depth for this slicelist. |
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. |
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()
Export depth as <extensions><flattenlist depth="X" /></extensions> |
void |
setDepth(int depth)
Set the depth of this slicelist. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SliceList()
| Method Detail |
|---|
public void setDepth(int depth)
If a depth less than 1 is given, a warning is logged and the depth is set to 1 instead.
depth - Depth of slicelist, minimum 2public int getDepth()
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 LocalWorker
public java.util.Map<java.lang.String,DataThing> execute(java.util.Map inputs)
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
PortCreationExceptionpublic void consumeXML(org.jdom.Element element)
consumeXML in interface XMLExtensiblepublic org.jdom.Element provideXML()
provideXML in interface XMLExtensible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||