public class JIPipeJsonExtension extends Object implements JIPipeParameterCollection, JIPipeExtension, JIPipeValidatable
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeJsonExtension.Deserializer
Deserializer for the
JIPipeJsonExtension . |
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Constructor and Description |
---|
JIPipeJsonExtension()
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
addAlgorithm(JsonNodeInfo nodeInfo)
Adds a new node type of specified type
|
Set<JIPipeDependency> |
getDependencies()
List of JIPipe dependencies.
|
String |
getDependencyId() |
Path |
getDependencyLocation()
Gets the location of the JAR/JSON that defined the dependency
|
String |
getDependencyVersion() |
EventBus |
getEventBus()
Gets the event bus that posts events about the parameters
|
List<JIPipeImageJUpdateSiteDependency> |
getImageJUpdateSiteDependencies()
List of ImageJ update sites that are dependencies
|
Path |
getJsonFilePath() |
JIPipeMetadata |
getMetadata() |
Set<JsonNodeInfo> |
getNodeInfos() |
String |
getProjectType() |
JIPipe |
getRegistry() |
JIPipeImageJUpdateSiteDependency.List |
getUpdateSiteDependenciesParameter() |
static JIPipeJsonExtension |
loadProject(com.fasterxml.jackson.databind.JsonNode jsonData)
Loads a
JIPipeJsonExtension from JSON |
static JIPipeJsonExtension |
loadProject(Path path)
Loads an extension from a file
|
void |
register()
Registers the content.
|
void |
removeAlgorithm(JsonNodeInfo info)
Removes an algorithm
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
void |
saveProject(Path savePath)
Saves the extension
|
void |
setId(String id)
Sets the ID
|
void |
setMetadata(JIPipeMetadata metadata)
Sets metadata
|
void |
setRegistry(JIPipe registry)
Sets the registry instance
|
void |
setUpdateSiteDependenciesParameter(JIPipeImageJUpdateSiteDependency.List updateSiteDependenciesParameter) |
void |
setVersion(String version)
Sets the version
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, isParameterUIVisible, isParameterUIVisible, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
isActivated, isBeta, isCoreExtension, isScheduledForActivation, isScheduledForDeactivation
getAllDependencies, getAllDependencies, getAllImageJUpdateSiteDependencies, getImageJUpdateSites, simplifyAndMinimize, toHtmlElement
generateValidityReport
public static JIPipeJsonExtension loadProject(com.fasterxml.jackson.databind.JsonNode jsonData)
JIPipeJsonExtension
from JSONjsonData
- JSON datapublic static JIPipeJsonExtension loadProject(Path path)
path
- the path to the project filepublic JIPipeMetadata getMetadata()
getMetadata
in interface JIPipeDependency
public void setMetadata(JIPipeMetadata metadata)
metadata
- Metadatapublic EventBus getEventBus()
JIPipeParameterCollection
getEventBus
in interface JIPipeParameterCollection
JIPipeParameterCollection.ParameterChangedEvent
and JIPipeParameterCollection.ParameterStructureChangedEvent
public String getDependencyId()
getDependencyId
in interface JIPipeDependency
public void setId(String id)
id
- IDpublic String getDependencyVersion()
getDependencyVersion
in interface JIPipeDependency
public Path getDependencyLocation()
JIPipeDependency
getDependencyLocation
in interface JIPipeDependency
public void setVersion(String version)
version
- Versionpublic String getProjectType()
public Set<JIPipeDependency> getDependencies()
JIPipeDependency
getDependencies
in interface JIPipeDependency
public List<JIPipeImageJUpdateSiteDependency> getImageJUpdateSiteDependencies()
JIPipeDependency
getImageJUpdateSiteDependencies
in interface JIPipeDependency
public JIPipeImageJUpdateSiteDependency.List getUpdateSiteDependenciesParameter()
public void setUpdateSiteDependenciesParameter(JIPipeImageJUpdateSiteDependency.List updateSiteDependenciesParameter)
public Path getJsonFilePath()
public JIPipe getRegistry()
public void setRegistry(JIPipe registry)
registry
- The registrypublic void register()
public void saveProject(Path savePath) throws IOException
savePath
- The save pathIOException
- Triggered by ObjectMapper
public void addAlgorithm(JsonNodeInfo nodeInfo)
nodeInfo
- The algorithm typepublic Set<JsonNodeInfo> getNodeInfos()
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportValidity
in interface JIPipeDependency
report
- the report to be added topublic void removeAlgorithm(JsonNodeInfo info)
info
- Algorithm typeCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.