public abstract class AbstractModuleInfo extends AbstractUIDetails implements ModuleInfo
ModuleInfo implementation.
By default, ModuleItems are stored in HashMaps and
ArrayLists, internally.
APPLICATION_MENU_ROOT| Constructor and Description |
|---|
AbstractModuleInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearParameters()
Clears input and output parameters.
|
ModuleItem<?> |
getInput(String name)
Gets the input item with the given name.
|
<T> ModuleItem<T> |
getInput(String name,
Class<T> type)
Gets the input item with the given name and type.
|
ModuleItem<?> |
getOutput(String name)
Gets the output item with the given name.
|
<T> ModuleItem<T> |
getOutput(String name,
Class<T> type)
Gets the output item with the given name and type.
|
protected List<ModuleItem<?>> |
inputList()
Gets
outputMap, initializing if needed. |
protected Map<String,ModuleItem<?>> |
inputMap()
Gets
inputMap, initializing if needed. |
Iterable<ModuleItem<?>> |
inputs()
Gets the list of input items.
|
protected List<ModuleItem<?>> |
outputList()
Gets
outputList, initializing if needed. |
protected Map<String,ModuleItem<?>> |
outputMap()
Gets
inputList, initializing if needed. |
Iterable<ModuleItem<?>> |
outputs()
Gets the list of output items.
|
protected void |
parseParameters()
Parses input and output parameters.
|
protected void |
registerInput(ModuleItem<?> input)
Adds an input.
|
protected void |
registerOutput(ModuleItem<?> output)
Adds an output.
|
getIconPath, 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, waitcanCancel, canPreview, canRunHeadless, createModule, getDelegateClassName, getIdentifier, getInitializer, getLocation, getProblems, getTitle, getVersion, isInteractive, isValid, loadDelegateClass, updatecompareTo, getIconPath, getMenuPath, getMenuRoot, getSelectionGroup, isEnabled, isSelectable, isSelected, isVisible, setEnabled, setIconPath, setMenuPath, setMenuRoot, setSelectable, setSelected, setSelectionGroup, setVisibleget, getDescription, getLabel, is, set, setDescription, setLabelgetPriority, setPrioritypublic ModuleItem<?> getInput(String name)
ModuleInfogetInput in interface ModuleInfopublic <T> ModuleItem<T> getInput(String name, Class<T> type)
ModuleInfogetInput in interface ModuleInfopublic ModuleItem<?> getOutput(String name)
ModuleInfogetOutput in interface ModuleInfopublic <T> ModuleItem<T> getOutput(String name, Class<T> type)
ModuleInfogetOutput in interface ModuleInfopublic Iterable<ModuleItem<?>> inputs()
ModuleInfoinputs in interface ModuleInfopublic Iterable<ModuleItem<?>> outputs()
ModuleInfooutputs in interface ModuleInfoprotected void parseParameters()
protected void clearParameters()
protected void registerInput(ModuleItem<?> input)
parseParameters() methods.protected void registerOutput(ModuleItem<?> output)
parseParameters() methods.protected Map<String,ModuleItem<?>> inputMap()
inputMap, initializing if needed.protected Map<String,ModuleItem<?>> outputMap()
inputList, initializing if needed.protected List<ModuleItem<?>> inputList()
outputMap, initializing if needed.protected List<ModuleItem<?>> outputList()
outputList, initializing if needed.Copyright © 2015–2022 SciJava. All rights reserved.