public class JIPipeExportedCompartment extends Object
JIPipeProjectCompartment
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeExportedCompartment.Deserializer
Deserializes the compartment
|
static class |
JIPipeExportedCompartment.Serializer
Serializes the compartment
|
Constructor and Description |
---|
JIPipeExportedCompartment()
Creates a new instance
|
JIPipeExportedCompartment(JIPipeProjectCompartment compartment)
Initializes the instance from a compartment
|
Modifier and Type | Method and Description |
---|---|
JIPipeProjectCompartment |
addTo(JIPipeProject project,
String compartmentName)
Adds the compartment to a project as the specified compartment name
|
JIPipeMetadata |
getMetadata() |
String |
getSuggestedName() |
void |
saveToJson(Path fileName)
Saves the exported compartment to JSON
|
void |
setMetadata(JIPipeMetadata metadata)
Sets the metadata
|
public JIPipeExportedCompartment()
public JIPipeExportedCompartment(JIPipeProjectCompartment compartment)
compartment
- The compartmentpublic String getSuggestedName()
public JIPipeProjectCompartment addTo(JIPipeProject project, String compartmentName)
project
- Target projectcompartmentName
- Target compartment namepublic void saveToJson(Path fileName) throws IOException
fileName
- The JSON filenameIOException
- Triggered by ObjectMapperpublic JIPipeMetadata getMetadata()
public void setMetadata(JIPipeMetadata metadata)
metadata
- The metadataCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.