public interface ValidationWorkflowDispatcher
ValidationWorkflowDispatcher exposes endpoints for validating top-level elements of Phenopacket Schema and dispatches the data into the appropriate ValidationWorkflowRunner.
  • 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

      ValidationResults validatePhenopacket(byte[] bytes)
      Validate a phenopacket starting from a pile of bytes.
      Parameters:
      bytes - that can represent a phenopacket in either of PhenopacketFormats.
      Returns:
      validation results.
    • validatePhenopacket

      ValidationResults validatePhenopacket(String string)
      Validate a phenopacket starting from a string.
      Parameters:
      string - that can represent a phenopacket either in PhenopacketFormat.JSON or PhenopacketFormat.YAML format.
      Returns:
      validation results.
    • validatePhenopacket

      ValidationResults validatePhenopacket(org.phenopackets.schema.v2.Phenopacket phenopacket)
      Validate a phenopacket starting from a protobuf object.
      Parameters:
      phenopacket - to be validated.
      Returns:
      validation results.
    • validateFamily

      ValidationResults validateFamily(byte[] bytes)
      Validate a family starting from a pile of bytes.
      Parameters:
      bytes - that can represent a family in either of PhenopacketFormats.
      Returns:
      validation results.
    • validateFamily

      ValidationResults validateFamily(String string)
      Validate a family starting from a string.
      Parameters:
      string - that can represent a family either in PhenopacketFormat.JSON or PhenopacketFormat.YAML format.
      Returns:
      validation results.
    • validateFamily

      ValidationResults validateFamily(org.phenopackets.schema.v2.Family family)
      Validate a family starting from a protobuf object.
      Parameters:
      family - to be validated.
      Returns:
      validation results.
    • validateCohort

      ValidationResults validateCohort(byte[] bytes)
      Validate a cohort starting from a pile of bytes.
      Parameters:
      bytes - that can represent a cohort in either of PhenopacketFormats.
      Returns:
      validation results.
    • validateCohort

      ValidationResults validateCohort(String string)
      Validate a cohort starting from a string.
      Parameters:
      string - that can represent a cohort either in PhenopacketFormat.JSON or PhenopacketFormat.YAML format.
      Returns:
      validation results.
    • validateCohort

      ValidationResults validateCohort(org.phenopackets.schema.v2.Cohort cohort)
      Validate a cohort starting from a protobuf object.
      Parameters:
      cohort - to be validated.
      Returns:
      validation results.