Class ValidationWorkflowRunnerBuilder<T extends com.google.protobuf.MessageOrBuilder>
java.lang.Object
org.phenopackets.phenopackettools.validator.core.ValidationWorkflowRunnerBuilder<T>
- Type Parameters:
T
- type of the top-level element of the Phenopacket Schema.
- Direct Known Subclasses:
JsonSchemaValidationWorkflowRunnerBuilder
public abstract class ValidationWorkflowRunnerBuilder<T extends com.google.protobuf.MessageOrBuilder>
extends Object
The base builder for constructing
ValidationWorkflowRunner
.
The builder keeps track of the validators and builds the ValidationWorkflowRunner
at the end.-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<PhenopacketValidator<T>>
Deprecated, for removal: This API element is subject to removal in a future version.protected final List<PhenopacketValidator<T>>
Deprecated, for removal: This API element is subject to removal in a future version.usevalidators
insteadprotected final List<PhenopacketValidator<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllSemanticValidators
(List<PhenopacketValidator<T>> validators) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidators(Collection)
insteadaddAllSyntaxValidators
(List<PhenopacketValidator<T>> validators) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidators(Collection)
insteadaddSemanticValidator
(PhenopacketValidator<T> semanticValidator) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidator(PhenopacketValidator)
insteadaddSyntaxValidator
(PhenopacketValidator<T> syntaxValidator) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidator(PhenopacketValidator)
insteadaddValidator
(PhenopacketValidator<T> validator) Add a validator to the end of the workflow.addValidators
(Collection<? extends PhenopacketValidator<T>> validators) Add validators to the end of the workflow.abstract ValidationWorkflowRunner<T>
build()
Finish building of theValidationWorkflowRunner
.
-
Field Details
-
validators
protected final List<PhenopacketValidator<T extends com.google.protobuf.MessageOrBuilder>> validators -
syntaxValidators
@Deprecated(forRemoval=true, since="0.4.8") protected final List<PhenopacketValidator<T extends com.google.protobuf.MessageOrBuilder>> syntaxValidatorsDeprecated, for removal: This API element is subject to removal in a future version.usevalidators
instead -
semanticValidators
@Deprecated(forRemoval=true, since="0.4.8") protected final List<PhenopacketValidator<T extends com.google.protobuf.MessageOrBuilder>> semanticValidatorsDeprecated, for removal: This API element is subject to removal in a future version.usevalidators
instead
-
-
Constructor Details
-
ValidationWorkflowRunnerBuilder
public ValidationWorkflowRunnerBuilder()
-
-
Method Details
-
addValidator
Add a validator to the end of the workflow. -
addValidators
public ValidationWorkflowRunnerBuilder<T> addValidators(Collection<? extends PhenopacketValidator<T>> validators) Add validators to the end of the workflow. -
addSyntaxValidator
@Deprecated(forRemoval=true, since="0.4.8") public ValidationWorkflowRunnerBuilder<T> addSyntaxValidator(PhenopacketValidator<T> syntaxValidator) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidator(PhenopacketValidator)
insteadAdd a syntax validator.- Parameters:
syntaxValidator
- the syntax validator- Returns:
- the builder
-
addAllSyntaxValidators
@Deprecated(forRemoval=true, since="0.4.8") public ValidationWorkflowRunnerBuilder<T> addAllSyntaxValidators(List<PhenopacketValidator<T>> validators) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidators(Collection)
insteadAdd syntax validators in bulk.- Parameters:
validators
- the syntax validators- Returns:
- the builder
-
addSemanticValidator
@Deprecated(forRemoval=true, since="0.4.8") public ValidationWorkflowRunnerBuilder<T> addSemanticValidator(PhenopacketValidator<T> semanticValidator) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidator(PhenopacketValidator)
insteadAdd a semantic validator.- Parameters:
semanticValidator
- the semantic validator- Returns:
- the builder
-
addAllSemanticValidators
@Deprecated(forRemoval=true, since="0.4.8") public ValidationWorkflowRunnerBuilder<T> addAllSemanticValidators(List<PhenopacketValidator<T>> validators) Deprecated, for removal: This API element is subject to removal in a future version.useaddValidators(Collection)
insteadAdd semantic validators in bulk.- Parameters:
validators
- the semantic validators- Returns:
- the builder
-
build
Finish building of theValidationWorkflowRunner
.- Returns:
- the runner
-
validators
instead