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) |
public ValidateAll(SchemaValidationStrategy strategy)
strategy - The strategy to use for validation of pairwise schemas.public void validate(Schema toValidate, Iterable<Schema> schemasInOrder) throws SchemaValidationException
SchemaValidatorvalidate in interface SchemaValidatortoValidate - 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-2014 The Apache Software Foundation. All Rights Reserved.