Object
Validators
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ValidatorContainer
The default container to be used by all staticvalidate
methods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method (if any).static void
validate
(IIOMetadataFormat object) Tests the conformance of the given object.static void
validate
(ImageReaderSpi object) Tests the conformance of the given object.static void
validate
(ImageWriterSpi object) Tests the conformance of the given object.static void
validate
(DirectPosition object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(CitationDate... object) Tests the conformance of the given objects.static void
Tests the conformance of the given object.static void
validate
(OnlineResource object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(Responsibility object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(BoundingPolygon object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(GeographicBoundingBox object) Tests the conformance of the given object.static void
validate
(GeographicDescription object) Tests the conformance of the given object.static void
validate
(GeographicExtent object) Tests the conformance of the given object.static void
validate
(TemporalExtent object) Tests the conformance of the given object.static void
validate
(VerticalExtent object) Tests the conformance of the given object.static void
validate
(Identifier object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(GeneralParameterDescriptor object) Tests the conformance of the given object.static void
validate
(GeneralParameterValue object) Tests the conformance of the given object.static void
validate
(ParameterDescriptor<?> object) Tests the conformance of the given object.static void
validate
(ParameterDescriptorGroup object) Tests the conformance of the given object.static void
validate
(ParameterValue<?> object) Tests the conformance of the given object.static void
validate
(ParameterValueGroup object) Tests the conformance of the given object.static void
validate
(CompoundCRS object) Validates the given coordinate reference system.static void
validate
(CoordinateReferenceSystem object) Tests the conformance of the given object.static void
validate
(DerivedCRS object) Validates the given coordinate reference system.static void
validate
(EngineeringCRS object) Validates the given coordinate reference system.static void
validate
(GeocentricCRS object) Tests the conformance of the given object.static void
validate
(GeographicCRS object) Tests the conformance of the given object.static void
Validates the given coordinate reference system.static void
validate
(ProjectedCRS object) Validates the given coordinate reference system.static void
validate
(TemporalCRS object) Validates the given coordinate reference system.static void
validate
(VerticalCRS object) Validates the given coordinate reference system.static void
validate
(CartesianCS object) Tests the conformance of the given object.static void
validate
(CoordinateSystem object) Tests the conformance of the given object.static void
validate
(CoordinateSystemAxis object) Tests the conformance of the given object.static void
validate
(CylindricalCS object) Tests the conformance of the given object.static void
validate
(EllipsoidalCS object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(SphericalCS object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(UserDefinedCS object) Tests the conformance of the given object.static void
validate
(VerticalCS object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(EngineeringDatum object) Tests the conformance of the given object.static void
validate
(GeodeticDatum object) Tests the conformance of the given object.static void
validate
(ImageDatum object) Tests the conformance of the given object.static void
validate
(PrimeMeridian object) Tests the conformance of the given object.static void
validate
(TemporalDatum object) Tests the conformance of the given object.static void
validate
(VerticalDatum object) Tests the conformance of the given object.static void
validate
(IdentifiedObject object) Tests the conformance of the given object.static void
validate
(ConcatenatedOperation object) Tests the conformance of the given object.static void
validate
(Conversion object) Tests the conformance of the given object.static void
validate
(CoordinateOperation object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(MathTransform object) Tests the conformance of the given object.static void
validate
(OperationMethod object) Tests the conformance of the given object.static void
validate
(PassThroughOperation object) Tests the conformance of the given object.static void
validate
(Transformation object) Tests the conformance of the given object.static void
validate
(GenericName object) Tests the conformance of the given object.static void
validate
(InternationalString object) Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
Tests the conformance of the given object.static void
validate
(ScopedName object) Tests the conformance of the given object.
-
Field Details
-
DEFAULT
The default container to be used by all staticvalidate
methods. Vendors can change the validators referenced by this container, or change their setting.This field is not final in order to allow vendors to switch easily between different configurations, for example:
ValidatorContainer original = Validators.DEFAULT; Validators.DEFAULT = myConfig; ... do some tests ... Validators.DEFAULT = original;
-
-
Constructor Details
-
Validators
protected Validators()For subclass constructors only.
-
-
Method Details
-
dispatch
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method (if any). Use this method only if the type is unknown at compile-time.- Parameters:
object
- the object to dispatch tovalidate(…)
methods, ornull
.
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given objects.- Parameters:
object
- the objects to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- Since:
- 3.1
- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-
validate
Tests the conformance of the given object.- Parameters:
object
- the object to test, ornull
.- See Also:
-