public static class JIPipeDefaultMutableSlotConfiguration.Builder extends Object
public JIPipeDefaultMutableSlotConfiguration.Builder addInputSlot(String name, String description, Class<? extends JIPipeData> klass)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classpublic JIPipeDefaultMutableSlotConfiguration.Builder addInputSlot(String name, String description, Class<? extends JIPipeData> klass, boolean optional)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classoptional
- Make the slot optionalpublic JIPipeDefaultMutableSlotConfiguration.Builder addInputSlot(AddJIPipeInputSlot annotation)
annotation
- the annotationpublic JIPipeDefaultMutableSlotConfiguration.Builder addInputSlot(String name, String description, Class<? extends JIPipeData> klass, boolean optional, boolean userModifiable)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classoptional
- Make the slot optional (default false in other overload)userModifiable
- Make slot user-modifiable (default true in other overload)@Deprecated public JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(String name, String description, Class<? extends JIPipeData> klass, String inheritedSlot)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classinheritedSlot
- From which slot the data type is inherited. Slot name of an input or '*' to select the first available slot. Can be null or empty.@Deprecated public JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(String name, String description, Class<? extends JIPipeData> klass, String inheritedSlot, Map<Class<? extends JIPipeData>,Class<? extends JIPipeData>> inheritanceConversions)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classinheritedSlot
- From which slot the data type is inherited. Slot name of an input or '*' to select the first available slot. Can be null or empty.inheritanceConversions
- Instructions on how to convert inherited slot types.@Deprecated public JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(String name, String description, Class<? extends JIPipeData> klass, String inheritedSlot, Map<Class<? extends JIPipeData>,Class<? extends JIPipeData>> inheritanceConversions, boolean userModifiable)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classinheritedSlot
- From which slot the data type is inherited. Slot name of an input or '*' to select the first available slot. Can be null or empty.inheritanceConversions
- Instructions on how to convert inherited slot types.userModifiable
- Make slot user-modifiable (default true in other overloads)public JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(String name, String description, Class<? extends JIPipeData> klass)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classpublic JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(AddJIPipeOutputSlot annotation)
annotation
- the annotationpublic JIPipeDefaultMutableSlotConfiguration.Builder addOutputSlot(String name, String description, Class<? extends JIPipeData> klass, boolean userModifiable)
name
- Unique slot namedescription
- the descriptionklass
- Slot data classuserModifiable
- Make slot user-modifiable (default true in other overloads)public JIPipeDefaultMutableSlotConfiguration.Builder addSlot(JIPipeDataSlotInfo definition)
definition
- Slot definitionpublic JIPipeDefaultMutableSlotConfiguration.Builder restrictInputSlotCount(int maxCount)
maxCount
- Maximum input slot numberpublic JIPipeDefaultMutableSlotConfiguration.Builder restrictOutputSlotCount(int maxCount)
maxCount
- Maximum output slot numberpublic JIPipeDefaultMutableSlotConfiguration.Builder withoutInput()
public JIPipeDefaultMutableSlotConfiguration.Builder withoutOutput()
public JIPipeDefaultMutableSlotConfiguration.Builder seal()
public JIPipeDefaultMutableSlotConfiguration.Builder sealInput()
public JIPipeDefaultMutableSlotConfiguration.Builder sealOutput()
@SafeVarargs public final JIPipeDefaultMutableSlotConfiguration.Builder restrictInputTo(Class<? extends JIPipeData>... types)
types
- Allowed data typespublic final JIPipeDefaultMutableSlotConfiguration.Builder restrictInputTo(Collection<Class<? extends JIPipeData>> types)
types
- Allowed data types@SafeVarargs public final JIPipeDefaultMutableSlotConfiguration.Builder restrictOutputTo(Class<? extends JIPipeData>... types)
types
- Allowed data typespublic final JIPipeDefaultMutableSlotConfiguration.Builder restrictOutputTo(Collection<Class<? extends JIPipeData>> types)
types
- Allowed data typespublic JIPipeDefaultMutableSlotConfiguration build()
JIPipeDefaultMutableSlotConfiguration
instancepublic JIPipeDefaultMutableSlotConfiguration.Builder addFromAnnotations(Class<? extends JIPipeGraphNode> klass)
klass
- the node classCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.