Package org.scijava.module.process
Class AbstractSingleInputPreprocessor
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.module.process.AbstractPreprocessorPlugin
-
- org.scijava.module.process.AbstractSingleInputPreprocessor
-
- All Implemented Interfaces:
Cancelable,Contextual,ModulePreprocessor,ModuleProcessor,PreprocessorPlugin,SciJavaPlugin
public abstract class AbstractSingleInputPreprocessor extends AbstractPreprocessorPlugin
Abstract superclass forPreprocessorPluginimplementations that populate singleton inputs. Contains helper methods to facilitate this functionality.- Author:
- Mark Hiner
-
-
Constructor Summary
Constructors Constructor Description AbstractSingleInputPreprocessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetSingleInput(Module module, Class<?> type)Helper method to look up the name of singleton module inputs of a given type.-
Methods inherited from class org.scijava.module.process.AbstractPreprocessorPlugin
cancel, getCancelReason, isCanceled
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.module.process.ModuleProcessor
process
-
-
-
-
Method Detail
-
getSingleInput
protected String getSingleInput(Module module, Class<?> type)
Helper method to look up the name of singleton module inputs of a given type.- Parameters:
module- Module to check for single inputtype- Type of single input to look for- Returns:
- If the given module has exactly one input of the specified type, return that input's name. Otherwise null;
-
-