Object
Validator
ReferencingValidator
CSValidator
Validates
CoordinateSystem and related objects from the org.opengis.referencing.cs
package.
This class is provided for users wanting to override the validation methods. When the default
behavior is sufficient, the Validators static methods provide a more
convenient way to validate various kinds of objects.
- Since:
- 2.2
- TODO:
- Add checks for Unit of Measurement depending on the coordinate system type.
For example,
EllipsoidalCSexpects two angular values and one linear value (if 3D).
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdispatch(CoordinateSystem object) For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).voidvalidate(CartesianCS object) Validates the given coordinate system.voidvalidate(CoordinateSystemAxis object) Validates the given axis.voidvalidate(CylindricalCS object) Validates the given coordinate system.voidvalidate(EllipsoidalCS object) Validates the given coordinate system.voidValidates the given coordinate system.voidValidates the given coordinate system.voidvalidate(SphericalCS object) Validates the given coordinate system.voidValidates the given coordinate system.voidvalidate(UserDefinedCS object) Deprecated.voidvalidate(VerticalCS object) Validates the given coordinate system.Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate
-
Constructor Details
-
CSValidator
Creates a new validator instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Details
-
dispatch
For each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).- Parameters:
object- the object to dispatch tovalidate(…)methods, ornull.- Returns:
- number of
validate(…)methods invoked in this class for the given object.
-
validate
Validates the given axis.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given coordinate system. This method ensures that axis directions are perpendicular to each other. Only known or compatibles directions are compared (e.g.NORTHwithEAST). Unknown or incompatible directions (e.g.NORTHwithFUTURE) are ignored.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given coordinate system.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given coordinate system.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given coordinate system.- Parameters:
object- the object to validate, ornull.
-
validate
-
validate
-
validate
Validates the given coordinate system.- Parameters:
object- the object to validate, ornull.
-
validate
-
validate
Deprecated.Validates the given coordinate system.- Parameters:
object- the object to validate, ornull.
-