Object
Validator
ReferencingValidator
DatumValidator
Validates
Datum and related objects from the org.opengis.datum 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
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
ConstructorsConstructorDescriptionDatumValidator(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionintFor each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).voidvalidate(DatumEnsemble<?> object) Validates the given datum ensemble.voidValidates the given ellipsoid.voidvalidate(EngineeringDatum object) Validates the given datum.voidvalidate(GeodeticDatum object) Validates the given datum.voidvalidate(ImageDatum object) Deprecated.voidvalidate(PrimeMeridian object) Validates the given prime meridian.voidvalidate(TemporalDatum object) Validates the given datum.voidvalidate(VerticalDatum object) Validates the given datum.Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate
-
Constructor Details
-
DatumValidator
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 prime meridian.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given ellipsoid. This method checks the following conditions:- Axis unit is defined and is linear.
- semi-minor <= semi-major.
- inverse flattening > 0.
- Consistency of semi-minor axis length with inverse flattening factor.
- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given datum.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given datum.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given datum.- Parameters:
object- the object to validate, ornull.
-
validate
Deprecated.Replaced byEngineeringDatumas of ISO 19111:2019.Validates the given datum.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given datum.- Parameters:
object- the object to validate, ornull.
-
validate
Validates the given datum ensemble.- Parameters:
object- the object to validate, ornull.- Since:
- 3.1
-
EngineeringDatumas of ISO 19111:2019.