Interface ValidationWorkflowDispatcher
public interface ValidationWorkflowDispatcher
ValidationWorkflowDispatcher
exposes endpoints for validating top-level elements of Phenopacket Schema
and dispatches the data into the appropriate ValidationWorkflowRunner
.-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationWorkflowDispatcher
of
(ValidationWorkflowRunner<org.phenopackets.schema.v2.Phenopacket> phenopacketValidationRunner, ValidationWorkflowRunner<org.phenopackets.schema.v2.Family> familyValidationRunner, ValidationWorkflowRunner<org.phenopackets.schema.v2.Cohort> cohortValidationRunner) validateCohort
(byte[] bytes) Validate a cohort starting from a pile of bytes.validateCohort
(String string) Validate a cohort starting from a string.validateCohort
(org.phenopackets.schema.v2.Cohort cohort) Validate a cohort starting from a protobuf object.validateFamily
(byte[] bytes) Validate a family starting from a pile of bytes.validateFamily
(String string) Validate a family starting from a string.validateFamily
(org.phenopackets.schema.v2.Family family) Validate a family starting from a protobuf object.validatePhenopacket
(byte[] bytes) Validate a phenopacket starting from a pile of bytes.validatePhenopacket
(String string) Validate a phenopacket starting from a string.validatePhenopacket
(org.phenopackets.schema.v2.Phenopacket phenopacket) Validate a phenopacket starting from a protobuf object.
-
Method Details
-
of
static ValidationWorkflowDispatcher of(ValidationWorkflowRunner<org.phenopackets.schema.v2.Phenopacket> phenopacketValidationRunner, ValidationWorkflowRunner<org.phenopackets.schema.v2.Family> familyValidationRunner, ValidationWorkflowRunner<org.phenopackets.schema.v2.Cohort> cohortValidationRunner) -
validatePhenopacket
Validate a phenopacket starting from a pile of bytes.- Parameters:
bytes
- that can represent a phenopacket in either ofPhenopacketFormat
s.- Returns:
- validation results.
-
validatePhenopacket
Validate a phenopacket starting from a string.- Parameters:
string
- that can represent a phenopacket either inPhenopacketFormat.JSON
orPhenopacketFormat.YAML
format.- Returns:
- validation results.
-
validatePhenopacket
Validate a phenopacket starting from a protobuf object.- Parameters:
phenopacket
- to be validated.- Returns:
- validation results.
-
validateFamily
Validate a family starting from a pile of bytes.- Parameters:
bytes
- that can represent a family in either ofPhenopacketFormat
s.- Returns:
- validation results.
-
validateFamily
Validate a family starting from a string.- Parameters:
string
- that can represent a family either inPhenopacketFormat.JSON
orPhenopacketFormat.YAML
format.- Returns:
- validation results.
-
validateFamily
Validate a family starting from a protobuf object.- Parameters:
family
- to be validated.- Returns:
- validation results.
-
validateCohort
Validate a cohort starting from a pile of bytes.- Parameters:
bytes
- that can represent a cohort in either ofPhenopacketFormat
s.- Returns:
- validation results.
-
validateCohort
Validate a cohort starting from a string.- Parameters:
string
- that can represent a cohort either inPhenopacketFormat.JSON
orPhenopacketFormat.YAML
format.- Returns:
- validation results.
-
validateCohort
Validate a cohort starting from a protobuf object.- Parameters:
cohort
- to be validated.- Returns:
- validation results.
-