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(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 OptionalDataAnnotationNameParameter()
public OptionalDataAnnotationNameParameter(OptionalStringParameter other)
public OptionalDataAnnotationNameParameter(String value, boolean enabled)
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- 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–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.