public final class ValidateAll extends Object implements SchemaValidator
A SchemaValidator
for validating the provided schema against all
schemas in the Iterable in validate(Schema, Iterable)
.
Uses the SchemaValidationStrategy
provided in the constructor to
validate the Schema
against each Schema in the Iterable, in Iterator
order, via SchemaValidationStrategy.validate(Schema, Schema)
.
Constructor and Description |
---|
ValidateAll(SchemaValidationStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
void |
validate(Schema toValidate,
Iterable<Schema> schemasInOrder)
Validate one schema against others.
|
public ValidateAll(SchemaValidationStrategy strategy)
strategy
- The strategy to use for validation of pairwise schemas.public void validate(Schema toValidate, Iterable<Schema> schemasInOrder) throws SchemaValidationException
SchemaValidator
validate
in interface SchemaValidator
toValidate
- The schema to validateschemasInOrder
- The schemas to validate against, in order from most recent
to latest if applicableSchemaValidationException
- if the schema fails to validate.Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.