public interface MutableModule extends Module
Module extension allowing manipulation of its metadata.
In particular, module inputs and outputs can be added, edited and removed.
A MutableModule always has MutableModuleInfo attached to it,
accessible via the getInfo() method.
DynamicCommand| Modifier and Type | Method and Description |
|---|---|
void |
addInput(ModuleItem<?> input)
Adds an input to the list.
|
<T> MutableModuleItem<T> |
addInput(String name,
Class<T> type)
Adds an input to the list.
|
void |
addOutput(ModuleItem<?> output)
Adds an output to the list.
|
<T> MutableModuleItem<T> |
addOutput(String name,
Class<T> type)
Adds an output to the list.
|
MutableModuleInfo |
getInfo()
Gets metadata about this module.
|
void |
removeInput(ModuleItem<?> input)
Removes an input from the list.
|
void |
removeOutput(ModuleItem<?> output)
Removes an output from the list.
|
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isResolved, preview, setInput, setInputs, setOutput, setOutputs, setResolved<T> MutableModuleItem<T> addInput(String name, Class<T> type)
void addInput(ModuleItem<?> input)
<T> MutableModuleItem<T> addOutput(String name, Class<T> type)
void addOutput(ModuleItem<?> output)
void removeInput(ModuleItem<?> input)
void removeOutput(ModuleItem<?> output)
MutableModuleInfo getInfo()
ModuleCopyright © 2009–2016 SciJava. All rights reserved.