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,
EllipsoidalCS
expects 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
-
Method Summary
Modifier and TypeMethodDescriptionint
dispatch
(CoordinateSystem object) For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).void
validate
(CartesianCS object) Validates the given coordinate system.void
validate
(CoordinateSystemAxis object) Validates the given axis.void
validate
(CylindricalCS object) Validates the given coordinate system.void
validate
(EllipsoidalCS object) Validates the given coordinate system.void
Validates the given coordinate system.void
Validates the given coordinate system.void
validate
(SphericalCS object) Validates the given coordinate system.void
Validates the given coordinate system.void
validate
(UserDefinedCS object) Deprecated.void
validate
(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.NORTH
withEAST
). Unknown or incompatible directions (e.g.NORTH
withFUTURE
) 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
.
-