Interface ValidationResults
public interface ValidationResults
ValidationResults
contain validation results for one Phenopacket schema top-level element
(Phenopacket
, Family
,
or Cohort
).
The results contain info regarding which validators were run (validators()
) and the issues found during
the validation (validationResults()
).
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResults.Builder
builder()
static ValidationResults
empty()
default boolean
isValid()
static ValidationResults
of
(List<ValidatorInfo> validators, List<ValidationResult> validationResults)
-
Method Details
-
of
static ValidationResults of(List<ValidatorInfo> validators, List<ValidationResult> validationResults) -
empty
-
builder
-
validators
List<ValidatorInfo> validators()- Returns:
- a list of
ValidatorInfo
representing validators applied to the top-level element.
-
validationResults
List<ValidationResult> validationResults()- Returns:
- a list of
ValidationResult
representing the issues found in the top-level element.
-
isValid
default boolean isValid()- Returns:
true
if no issues have been found and the validated item is valid.
-