Package org.scijava.module
Interface MutableModule
-
- All Known Implementing Classes:
DefaultMutableModule,DynamicCommand,Inputs,InteractiveCommand,OptionsPlugin
public interface MutableModule extends Module
Moduleextension allowing manipulation of its metadata.In particular, module inputs and outputs can be added, edited and removed.
A
MutableModulealways hasMutableModuleInfoattached to it, accessible via thegetInfo()method.- Author:
- Curtis Rueden
- See Also:
DynamicCommand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> MutableModuleItem<T>addInput(String name, Class<T> type)Adds an input to the list.default voidaddInput(ModuleItem<?> input)Adds an input to the list.default <T> MutableModuleItem<T>addOutput(String name, Class<T> type)Adds an output to the list.default voidaddOutput(ModuleItem<?> output)Adds an output to the list.MutableModuleInfogetInfo()Gets metadata about this module.default voidremoveInput(ModuleItem<?> input)Removes an input from the list.default voidremoveOutput(ModuleItem<?> output)Removes an output from the list.default voidrun()-
Methods inherited from interface org.scijava.module.Module
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isInputResolved, isOutputResolved, isResolved, preview, resolveInput, resolveOutput, setInput, setInputs, setOutput, setOutputs, setResolved, unresolveInput, unresolveOutput
-
-
-
-
Method Detail
-
addInput
default <T> MutableModuleItem<T> addInput(String name, Class<T> type)
Adds an input to the list.
-
addInput
default void addInput(ModuleItem<?> input)
Adds an input to the list.
-
addOutput
default <T> MutableModuleItem<T> addOutput(String name, Class<T> type)
Adds an output to the list.
-
addOutput
default void addOutput(ModuleItem<?> output)
Adds an output to the list.
-
removeInput
default void removeInput(ModuleItem<?> input)
Removes an input from the list.
-
removeOutput
default void removeOutput(ModuleItem<?> output)
Removes an output from the list.
-
getInfo
MutableModuleInfo getInfo()
Description copied from interface:ModuleGets metadata about this module.
-
-