org.scijava.module
Interface MutableModuleInfo

All Superinterfaces:
BasicDetails, Comparable<Prioritized>, ModuleInfo, Prioritized, UIDetails, Validated
All Known Implementing Classes:
DefaultMutableModuleInfo, DynamicCommandInfo

public interface MutableModuleInfo
extends ModuleInfo

ModuleInfo extension allowing manipulation of its metadata.

In particular, module inputs and outputs can be added, edited and removed.

Note that a MutableModuleInfo does not necessarily have MutableModuleItems!

Author:
Curtis Rueden
See Also:
DynamicCommand

Field Summary
 
Fields inherited from interface org.scijava.UIDetails
APPLICATION_MENU_ROOT
 
Method Summary
 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.
 
Methods inherited from interface org.scijava.module.ModuleInfo
canCancel, canPreview, canRunHeadless, createModule, getDelegateClassName, getInitializer, getInput, getInput, getOutput, getOutput, inputs, isInteractive, outputs, update
 
Methods inherited from interface org.scijava.UIDetails
getIconPath, getMenuPath, getMenuRoot, getSelectionGroup, getTitle, isEnabled, isSelectable, isSelected, isVisible, setEnabled, setIconPath, setMenuPath, setMenuRoot, setSelectable, setSelected, setSelectionGroup, setVisible
 
Methods inherited from interface org.scijava.BasicDetails
get, getDescription, getLabel, getName, is, set, setDescription, setLabel, setName
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.Validated
getProblems, isValid
 

Method Detail

setModuleClass

void setModuleClass(Class<? extends Module> moduleClass)
Sets the module class described by this ModuleInfo.


getModuleClass

Class<? extends Module> getModuleClass()
Gets the module class described by this ModuleInfo.


addInput

void addInput(ModuleItem<?> input)
Adds an input to the list.


addOutput

void addOutput(ModuleItem<?> output)
Adds an output to the list.


removeInput

void removeInput(ModuleItem<?> input)
Removes an input from the list.


removeOutput

void removeOutput(ModuleItem<?> output)
Removes an output from the list.



Copyright © 2009–2014 SciJava. All rights reserved.