public class OptionalTextAnnotationNameParameter extends OptionalStringParameter implements JIPipeValidatable
OptionalParameter.Deserializer<T>, OptionalParameter.Serializer
Constructor and Description |
---|
OptionalTextAnnotationNameParameter() |
OptionalTextAnnotationNameParameter(OptionalStringParameter other) |
OptionalTextAnnotationNameParameter(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(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
setNewInstance
equals, getContent, getContentClass, getContentOrDefault, getTextDescription, hashCode, isEnabled, setContent, setEnabled, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
generateValidityReport
getTextDescriptionOf
public OptionalTextAnnotationNameParameter()
public OptionalTextAnnotationNameParameter(OptionalStringParameter other)
public OptionalTextAnnotationNameParameter(String value, boolean enabled)
public void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportContext
- the report contextreport
- 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–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.