Package org.opengis.test.referencing
Class CSValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.referencing.ReferencingValidator
-
- org.opengis.test.referencing.CSValidator
-
public class CSValidator extends ReferencingValidator
ValidatesCoordinateSystem
and related objects from theorg.opengis.referencing.cs
package. This class should not be used directly; use theValidators
convenience static methods instead.- Since:
- 2.2
- Version:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description CSValidator(ValidatorContainer container)
Creates a new validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(CoordinateSystem object)
Dispatches the given object to one ofvalidate
methods.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
validate(LinearCS object)
Validates the given coordinate system.void
validate(PolarCS object)
Validates the given coordinate system.void
validate(SphericalCS object)
Validates the given coordinate system.void
validate(TimeCS object)
Validates the given coordinate system.void
validate(UserDefinedCS object)
Validates the given coordinate system.void
validate(VerticalCS object)
Validates the given coordinate system.private void
validateAxes(CoordinateSystem object)
Performs the validation that are common to all coordinate systems.-
Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
-
-
-
Constructor Detail
-
CSValidator
public CSValidator(ValidatorContainer container)
Creates a new validator.- Parameters:
container
- The container of this validator.
-
-
Method Detail
-
dispatch
public void dispatch(CoordinateSystem object)
Dispatches the given object to one ofvalidate
methods.- Parameters:
object
- The object to dispatch.
-
validate
public void validate(CoordinateSystemAxis object)
Validates the given axis.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(CartesianCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(EllipsoidalCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(SphericalCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(CylindricalCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(PolarCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(LinearCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(VerticalCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(TimeCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(UserDefinedCS object)
Validates the given coordinate system.- Parameters:
object
- The object to validate, ornull
.
-
validateAxes
private void validateAxes(CoordinateSystem object)
Performs the validation that are common to all coordinate systems. This method is invoked byvalidate
methods after they have determined the type of their argument.- Parameters:
object
- The object to validate (can not be null).
-
-