Class OutputPortsBuilder
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.OutputPortsBuilder
This class allow to easily create input ports for a step.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPort(String name, boolean list, DataFormat format) Add an output port.addPort(String name, boolean list, DataFormat format, fr.ens.biologie.genomique.kenetre.io.CompressionType compression) Add an output port.addPort(String name, DataFormat format) Add an output port.addPort(String name, DataFormat format, fr.ens.biologie.genomique.kenetre.io.CompressionType compression) Add an output port.static OutputPortscopy(OutputPorts ports) Convenient method to create a defensive copy of an OutputPorts object.create()Create the ports.static OutputPortsCreate the ports with no ports.static OutputPortssingleOutputPort(DataFormat format) Convenient method to create the ports with only one port.static OutputPortssingleOutputPort(String name, DataFormat format) Convenient method to create the ports with only one port.
-
Field Details
-
DEFAULT_SINGLE_OUTPUT_PORT_NAME
Default single output port name.- See Also:
-
-
Constructor Details
-
OutputPortsBuilder
public OutputPortsBuilder()
-
-
Method Details
-
addPort
Add an output port.- Parameters:
name- name of the portformat- format of the port- Returns:
- the instance of the builder
-
addPort
Add an output port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the port- Returns:
- the instance of the builder
-
addPort
public OutputPortsBuilder addPort(String name, DataFormat format, fr.ens.biologie.genomique.kenetre.io.CompressionType compression) Add an output port.- Parameters:
name- name of the portformat- format of the portcompression- compression of the output- Returns:
- the instance of the builder
-
addPort
public OutputPortsBuilder addPort(String name, boolean list, DataFormat format, fr.ens.biologie.genomique.kenetre.io.CompressionType compression) Add an output port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the portcompression- compression of the output- Returns:
- the instance of the builder
-
create
Create the ports.- Returns:
- new OutputPorts object
-
noOutputPort
Create the ports with no ports.- Returns:
- a new OutputPorts object
-
singleOutputPort
Convenient method to create the ports with only one port.- Parameters:
format- format of the port- Returns:
- a new OutputPorts object
-
singleOutputPort
Convenient method to create the ports with only one port.- Parameters:
name- name of the portformat- format of the port- Returns:
- a new OutputPorts object
-
copy
Convenient method to create a defensive copy of an OutputPorts object.- Parameters:
ports- an existing OutputPorts object- Returns:
- a new OutputPorts object or null if the ports parameter is null
-