Class ValidatorContainer

Object
ValidatorContainer
All Implemented Interfaces:
Cloneable

public class ValidatorContainer extends Object implements Cloneable
A set of convenience methods for validating GeoAPI implementations. Every validate method defined in this class delegate their work to one of many Validator objects in various packages. Vendors can change the value of fields in this class if they wish to override some validation process.

Customization
All validate(…) methods in this class are final because this class is not the extension point for overriding validation processes. Instead, extend the appropriate Validator subclass and assign an instance to the corresponding field in this class. For example in order to override the validation of GeographicCRS objects, one can do:

ValidatorContainer container = new ValidationContainer();
container.crs = new CRSValidator(container) {
    @Override
    public void validate(GeographicCRS object) {
        super.validate(object);
        // Perform additional validation here.
    }
};
Since:
2.2