public class DefaultMutableModuleInfo extends AbstractModuleInfo implements MutableModuleInfo
MutableModuleInfo implementation.
The Module Class given in the setModuleClass(Class)
method is used by ModuleInfo.getDelegateClassName() as the delegate class name,
and instantiated using a no-argument constructor. As such, it is important
for downstream code to call the setModuleClass(Class) method to
associate the module info with its module class prior to using the module
info for anything; the ModuleInfo.getDelegateClassName() and
ModuleInfo.createModule() methods will fail if the module class has not been
set.
APPLICATION_MENU_ROOT| Constructor and Description |
|---|
DefaultMutableModuleInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(ModuleItem<?> input)
Adds an input to the list.
|
void |
addOutput(ModuleItem<?> output)
Adds an output to the list.
|
Class<? extends Module> |
getModuleClass()
Gets the module class described by this
ModuleInfo. |
void |
removeInput(ModuleItem<?> input)
Removes an input from the list.
|
void |
removeOutput(ModuleItem<?> output)
Removes an output from the list.
|
void |
setModuleClass(Class<? extends Module> moduleClass)
Sets the module class described by this
ModuleInfo. |
clearParameters, getInput, getInput, getOutput, getOutput, inputList, inputMap, inputs, outputList, outputMap, outputs, parseParameters, registerInput, registerOutputgetIconPath, getMenuPath, getMenuRoot, getPriority, getSelectionGroup, isEnabled, isSelectable, isSelected, isVisible, setEnabled, setIconPath, setMenuPath, setMenuRoot, setPriority, setSelectable, setSelected, setSelectionGroup, setVisible, toStringget, getDescription, getLabel, getName, is, set, setDescription, setLabel, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateModule, getDelegateClassName, loadDelegateClasscanCancel, canPreview, canRunHeadless, getIdentifier, getInitializer, getInput, getInput, getLocation, getOutput, getOutput, getProblems, getTitle, getVersion, inputs, isInteractive, isValid, outputs, updatecompareTo, getIconPath, getMenuPath, getMenuRoot, getSelectionGroup, isEnabled, isSelectable, isSelected, isVisible, setEnabled, setIconPath, setMenuPath, setMenuRoot, setSelectable, setSelected, setSelectionGroup, setVisibleget, getDescription, getLabel, is, set, setDescription, setLabelgetPriority, setPrioritypublic void setModuleClass(Class<? extends Module> moduleClass)
MutableModuleInfoModuleInfo.setModuleClass in interface MutableModuleInfopublic Class<? extends Module> getModuleClass()
MutableModuleInfoModuleInfo.getModuleClass in interface MutableModuleInfopublic void addInput(ModuleItem<?> input)
MutableModuleInfoaddInput in interface MutableModuleInfopublic void addOutput(ModuleItem<?> output)
MutableModuleInfoaddOutput in interface MutableModuleInfopublic void removeInput(ModuleItem<?> input)
MutableModuleInforemoveInput in interface MutableModuleInfopublic void removeOutput(ModuleItem<?> output)
MutableModuleInforemoveOutput in interface MutableModuleInfoCopyright © 2009–2022 SciJava. All rights reserved.