public class OptionalAnnotationNameParameter extends OptionalStringParameter implements JIPipeValidatable
OptionalParameter.Deserializer<T>, OptionalParameter.Serializer
Constructor and Description |
---|
OptionalAnnotationNameParameter() |
OptionalAnnotationNameParameter(OptionalStringParameter other) |
OptionalAnnotationNameParameter(String value,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations,
Collection<String> values)
Adds the annotation with given value of the parameter is enabled
|
void |
addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations,
String value)
Adds the annotation with given value of the parameter is enabled
|
void |
addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations,
String[] values)
Adds the annotation with given value of the parameter is enabled
|
JIPipeTextAnnotation |
createAnnotation(Collection<String> values)
Creates a new annotation with the defined name and value
|
JIPipeTextAnnotation |
createAnnotation(String value)
Creates a new annotation with the defined name and value
|
JIPipeTextAnnotation |
createAnnotation(String[] values)
Creates a new annotation with the defined name and value
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
setNewInstance
getContent, getContentClass, getContentOrDefault, isEnabled, setContent, setEnabled, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateValidityReport
public OptionalAnnotationNameParameter()
public OptionalAnnotationNameParameter(OptionalStringParameter other)
public OptionalAnnotationNameParameter(String value, boolean enabled)
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- the report to be added topublic JIPipeTextAnnotation createAnnotation(String value)
value
- the value of the annotationpublic JIPipeTextAnnotation createAnnotation(String[] values)
values
- the value of the annotationpublic JIPipeTextAnnotation createAnnotation(Collection<String> values)
values
- the value of the annotationpublic void addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations, String value)
annotations
- list of annotationsvalue
- the valuepublic void addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations, String[] values)
annotations
- list of annotationsvalues
- the valuepublic void addAnnotationIfEnabled(Collection<JIPipeTextAnnotation> annotations, Collection<String> values)
annotations
- list of annotationsvalues
- the valueCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.