Class Validators

Object
Validators

public class Validators extends Object
A set of convenience static methods for validating GeoAPI implementations. Every validate method defined in this class delegate their work to one of many Validator objects in various packages. This class is especially convenient when used with static import statements.

Customization
To override some validation process on a system-wide basis, vendors can either assign a new ValidatorContainer instance to the DEFAULT static field, or modify the fields (cs, crs, etc.) in the existing instance. The following example alters the existing instance in order to accept non-standard axis names:

Validators.DEFAULT.crs.enforceStandardNames = false;

To override some validation process without changing the system-wide setting, vendors can create a new instance of ValidatorContainer and invoke its non-static methods from the vendor's test cases.

Since:
2.2