public class OptionalDataAnnotationNameParameter extends OptionalStringParameter implements JIPipeValidatable
OptionalParameter.Deserializer<T>, OptionalParameter.Serializer
Constructor and Description |
---|
OptionalDataAnnotationNameParameter() |
OptionalDataAnnotationNameParameter(OptionalStringParameter other) |
OptionalDataAnnotationNameParameter(String value,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationIfEnabled(Collection<JIPipeDataAnnotation> annotations,
JIPipeData value)
Adds the annotation with given value of the parameter is enabled
|
JIPipeDataAnnotation |
createAnnotation(JIPipeData value)
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 OptionalDataAnnotationNameParameter()
public OptionalDataAnnotationNameParameter(OptionalStringParameter other)
public OptionalDataAnnotationNameParameter(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 JIPipeDataAnnotation createAnnotation(JIPipeData value)
value
- the value of the annotationpublic void addAnnotationIfEnabled(Collection<JIPipeDataAnnotation> annotations, JIPipeData value)
annotations
- list of annotationsvalue
- the valueCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.