public class JIPipeParameterTypeRegistry extends Object
Constructor and Description |
---|
JIPipeParameterTypeRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
JIPipeParameterEditorUI |
createEditorFor(JIPipeWorkbench workbench,
JIPipeParameterTree parameterTree,
JIPipeParameterAccess parameterAccess)
Creates editor for the parameter
|
Set<JIPipeParameterGenerator> |
getGeneratorsFor(Class<?> parameterClass)
Returns all generators for the parameter class
|
JIPipeParameterTypeInfo |
getInfoByFieldClass(Class<?> fieldClass)
Return a parameter type by its field class
|
JIPipeParameterTypeInfo |
getInfoById(String id)
Returns a parameter type info by ID
|
JIPipe |
getJIPipe() |
com.google.common.collect.BiMap<String,JIPipeParameterTypeInfo> |
getRegisteredParameters() |
boolean |
hasEditorFor(Class<?> parameterType)
Returns true if there is an editor for the parameter
|
void |
register(JIPipeParameterTypeInfo info)
Registers a new parameter type
|
void |
registerGenerator(Class<?> parameterClass,
JIPipeParameterGenerator generator)
Registers a UI that can generate parameters
|
void |
registerParameterEditor(Class<?> parameterType,
Class<? extends JIPipeParameterEditorUI> uiClass)
Registers a new parameter type
|
public JIPipeParameterTypeRegistry(JIPipe jiPipe)
public void register(JIPipeParameterTypeInfo info)
info
- the parameter typepublic com.google.common.collect.BiMap<String,JIPipeParameterTypeInfo> getRegisteredParameters()
public JIPipeParameterTypeInfo getInfoById(String id)
id
- the IDpublic JIPipeParameterTypeInfo getInfoByFieldClass(Class<?> fieldClass)
fieldClass
- the field classpublic void registerParameterEditor(Class<?> parameterType, Class<? extends JIPipeParameterEditorUI> uiClass)
parameterType
- parameter typeuiClass
- corresponding editor UIpublic JIPipeParameterEditorUI createEditorFor(JIPipeWorkbench workbench, JIPipeParameterTree parameterTree, JIPipeParameterAccess parameterAccess)
workbench
- SciJava contextparameterTree
- the parameter treeparameterAccess
- the parameterpublic boolean hasEditorFor(Class<?> parameterType)
parameterType
- the parameter typepublic void registerGenerator(Class<?> parameterClass, JIPipeParameterGenerator generator)
parameterClass
- Parameter classgenerator
- The generator objectpublic Set<JIPipeParameterGenerator> getGeneratorsFor(Class<?> parameterClass)
parameterClass
- the parameter classpublic JIPipe getJIPipe()
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.