public class JIPipeParameterTree extends AbstractJIPipeParameterCollection implements JIPipeCustomParameterCollection, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEventListener
JIPipeParameterCollection
that contains all the parameters of one or multiple
JIPipeParameterCollection
instances in a traversed form.Modifier and Type | Class and Description |
---|---|
static class |
JIPipeParameterTree.Node
A node
|
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Modifier and Type | Field and Description |
---|---|
static int |
FORCE_REFLECTION
Whether to force reflection
|
static int |
IGNORE_CUSTOM
Whether to ignore all custom parameters
|
static int |
IGNORE_REFLECTION
Whether to ignore all reflection parameters
|
static int |
NONE
No flags
|
Constructor and Description |
---|
JIPipeParameterTree() |
JIPipeParameterTree(JIPipeParameterAccess access)
Creates a new dummy tree for a single access
|
JIPipeParameterTree(JIPipeParameterCollection rootParameter)
Creates a new instance with a predefined root parameter
|
JIPipeParameterTree(JIPipeParameterCollection rootParameter,
int flags)
Creates a new instance with a predefined root parameter
|
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildParameterCollections, getIncludeReflectionParameters
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public static final int NONE
public static final int IGNORE_REFLECTION
public static final int FORCE_REFLECTION
public static final int IGNORE_CUSTOM
public JIPipeParameterTree()
public JIPipeParameterTree(JIPipeParameterCollection rootParameter)
rootParameter
- the root parameterpublic JIPipeParameterTree(JIPipeParameterAccess access)
access
- the accesspublic JIPipeParameterTree(JIPipeParameterCollection rootParameter, int flags)
rootParameter
- the root parameterflags
- additional flagspublic static Map<String,JIPipeParameterAccess> getParameters(JIPipeParameterCollection collection)
collection
- the collectionpublic JIPipeParameterTree getParent()
public void setParent(JIPipeParameterTree parent)
parent
- the parent. can be null.public Map<JIPipeParameterCollection,List<JIPipeParameterAccess>> getGroupedBySource()
public String getUniqueKey(JIPipeParameterAccess parameterAccess)
parameterAccess
- the accesspublic JIPipeParameterTree.Node add(JIPipeParameterCollection child, String key, JIPipeParameterTree.Node parent)
JIPipeParameterCollection
into this collection.
Ignores sources that have already been addedchild
- the added collectionkey
- the unique key within the parent nodeparent
- the parent node. Can be null (then defaults to root)public void merge(JIPipeParameterCollection source, JIPipeParameterTree.Node target)
source
- the parameterstarget
- the target nodepublic Map<String,JIPipeParameterAccess> getParameters()
JIPipeCustomParameterCollection
getParameters
in interface JIPipeCustomParameterCollection
public boolean isIgnoreReflectionParameters()
public void setIgnoreReflectionParameters(boolean ignoreReflectionParameters)
public boolean isIgnoreCustomParameters()
public void setIgnoreCustomParameters(boolean ignoreCustomParameters)
public PriorityQueue<JIPipeParameterAccess> getParametersByPriority()
public boolean isForceReflection()
public void setForceReflection(boolean forceReflection)
public List<JIPipeParameterAccess> getAllChildParameters(Object entry)
JIPipeParameterAccess
, it is returned. Otherwise all children of the JIPipeParameterCollection
are returned.entry
- the entry.public JIPipeParameterTree.Node getRoot()
public String getSourceKey(JIPipeParameterCollection collection)
collection
- sourcepublic Set<JIPipeParameterCollection> getRegisteredSources()
public int getUISourceOrder(JIPipeParameterCollection source)
source
- sourcepublic String getSourceDocumentationName(JIPipeParameterCollection source)
source
- sourcepublic boolean isSourceHidden(JIPipeParameterCollection source)
source
- sourcepublic int getSourceUIOrder(JIPipeParameterCollection source)
source
- sourcepublic boolean getSourceCollapsed(JIPipeParameterCollection source)
source
- sourcepublic SetJIPipeDocumentation getSourceDocumentation(JIPipeParameterCollection source)
source
- sourcepublic void setSourceDocumentation(JIPipeParameterCollection source, JIPipeDocumentation documentation)
source
- sourcedocumentation
- documentationpublic JIPipeParameterTree.Node getSourceNode(JIPipeParameterCollection collection)
collection
- the collectionpublic void removeParameterByKey(String key)
key
- the keypublic void onParameterChanged(JIPipeParameterCollection.ParameterChangedEvent event)
AbstractJIPipeParameterCollection
onParameterChanged
in interface JIPipeParameterCollection.ParameterChangedEventListener
onParameterChanged
in class AbstractJIPipeParameterCollection
event
- the generated eventpublic void onParameterStructureChanged(JIPipeParameterCollection.ParameterStructureChangedEvent event)
AbstractJIPipeParameterCollection
onParameterStructureChanged
in interface JIPipeParameterCollection.ParameterStructureChangedEventListener
onParameterStructureChanged
in class AbstractJIPipeParameterCollection
event
- generated eventpublic void onParameterUIChanged(JIPipeParameterCollection.ParameterUIChangedEvent event)
AbstractJIPipeParameterCollection
onParameterUIChanged
in interface JIPipeParameterCollection.ParameterUIChangedEventListener
onParameterUIChanged
in class AbstractJIPipeParameterCollection
event
- generated eventCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.