public abstract class AbstractModuleInfo extends AbstractUIDetails implements ModuleInfo
ModuleInfo
implementation.
By default, ModuleItem
s are stored in HashMap
s and
ArrayList
s, 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, toString
get, getDescription, getLabel, getName, is, set, setDescription, setLabel, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCancel, canPreview, canRunHeadless, createModule, getDelegateClassName, getIdentifier, getInitializer, getLocation, getProblems, getTitle, getVersion, isInteractive, isValid, loadDelegateClass, update
compareTo, getIconPath, getMenuPath, getMenuRoot, getSelectionGroup, isEnabled, isSelectable, isSelected, isVisible, setEnabled, setIconPath, setMenuPath, setMenuRoot, setSelectable, setSelected, setSelectionGroup, setVisible
get, getDescription, getLabel, is, set, setDescription, setLabel
getPriority, setPriority
public ModuleItem<?> getInput(String name)
ModuleInfo
getInput
in interface ModuleInfo
public <T> ModuleItem<T> getInput(String name, Class<T> type)
ModuleInfo
getInput
in interface ModuleInfo
public ModuleItem<?> getOutput(String name)
ModuleInfo
getOutput
in interface ModuleInfo
public <T> ModuleItem<T> getOutput(String name, Class<T> type)
ModuleInfo
getOutput
in interface ModuleInfo
public Iterable<ModuleItem<?>> inputs()
ModuleInfo
inputs
in interface ModuleInfo
public Iterable<ModuleItem<?>> outputs()
ModuleInfo
outputs
in interface ModuleInfo
protected 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.