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 newValidatorContainer 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 ValidatorContainerThe default container to be used by all staticvalidatemethods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidFor each interface implemented by the given object, invokes the correspondingvalidate(…)method (if any).static voidvalidate(IIOMetadataFormat object) Tests the conformance of the given object.static voidvalidate(ImageReaderSpi object) Tests the conformance of the given object.static voidvalidate(ImageWriterSpi object) Tests the conformance of the given object.static voidvalidate(DirectPosition object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidTests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(CitationDate... object) Tests the conformance of the given objects.static voidTests the conformance of the given object.static voidvalidate(OnlineResource object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(Responsibility object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(BoundingPolygon object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(GeographicBoundingBox object) Tests the conformance of the given object.static voidvalidate(GeographicDescription object) Tests the conformance of the given object.static voidvalidate(GeographicExtent object) Tests the conformance of the given object.static voidvalidate(TemporalExtent object) Tests the conformance of the given object.static voidvalidate(VerticalExtent object) Tests the conformance of the given object.static voidvalidate(Identifier object) Tests the conformance of the given object.static voidvalidate(MaintenanceInformation object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(ConformanceResult object) Tests the conformance of the given object.static voidvalidate(CoverageResult object) Tests the conformance of the given object.static voidvalidate(DataQuality object) Tests the conformance of the given object.static voidvalidate(DescriptiveResult object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(PositionalAccuracy object) Tests the conformance of the given object.static voidvalidate(QuantitativeResult object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(GeneralParameterDescriptor object) Tests the conformance of the given object.static voidvalidate(GeneralParameterValue object) Tests the conformance of the given object.static voidvalidate(ParameterDescriptor<?> object) Tests the conformance of the given object.static voidvalidate(ParameterDescriptorGroup object) Tests the conformance of the given object.static voidvalidate(ParameterValue<?> object) Tests the conformance of the given object.static voidvalidate(ParameterValueGroup object) Tests the conformance of the given object.static voidvalidate(CompoundCRS object) Validates the given coordinate reference system.static voidvalidate(CoordinateReferenceSystem object) Tests the conformance of the given object.static voidvalidate(DerivedCRS object) Validates the given coordinate reference system.static voidvalidate(EngineeringCRS object) Validates the given coordinate reference system.static voidvalidate(GeodeticCRS object) Tests the conformance of the given object.static voidDeprecated.static voidvalidate(ProjectedCRS object) Validates the given coordinate reference system.static voidvalidate(TemporalCRS object) Validates the given coordinate reference system.static voidvalidate(VerticalCRS object) Validates the given coordinate reference system.static voidvalidate(CartesianCS object) Tests the conformance of the given object.static voidvalidate(CoordinateSystem object) Tests the conformance of the given object.static voidvalidate(CoordinateSystemAxis object) Tests the conformance of the given object.static voidvalidate(CylindricalCS object) Tests the conformance of the given object.static voidvalidate(EllipsoidalCS object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(SphericalCS object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(UserDefinedCS object) Deprecated.static voidvalidate(VerticalCS object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(DatumEnsemble<?> object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(EngineeringDatum object) Tests the conformance of the given object.static voidvalidate(GeodeticDatum object) Tests the conformance of the given object.static voidvalidate(ImageDatum object) Deprecated.ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.static voidvalidate(PrimeMeridian object) Tests the conformance of the given object.static voidvalidate(TemporalDatum object) Tests the conformance of the given object.static voidvalidate(VerticalDatum object) Tests the conformance of the given object.static voidvalidate(IdentifiedObject object) Tests the conformance of the given object.static voidvalidate(ConcatenatedOperation object) Tests the conformance of the given object.static voidvalidate(Conversion object) Tests the conformance of the given object.static voidvalidate(CoordinateOperation object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(MathTransform object) Tests the conformance of the given object.static voidvalidate(OperationMethod object) Tests the conformance of the given object.static voidvalidate(PassThroughOperation object) Tests the conformance of the given object.static voidvalidate(PointMotionOperation object) Tests the conformance of the given object.static voidvalidate(Transformation object) Tests the conformance of the given object.static voidvalidate(GenericName object) Tests the conformance of the given object.static voidvalidate(InternationalString object) Tests the conformance of the given object.static voidTests the conformance of the given object.static voidTests the conformance of the given object.static voidvalidate(ScopedName object) Tests the conformance of the given object.
-
Field Details
-
DEFAULT
The default container to be used by all staticvalidatemethods. 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
-
validate
-
validate
-
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
-
validate
-
validate
-
validate
-
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
-
validate
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
-
validate
-
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
-
validate
-
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
-
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
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
Deprecated.ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.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
-
validate
-
validate
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
-
validate
-
validate
Deprecated.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
-
validate
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
-
validate
-
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
Deprecated.ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.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
-
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
-
validate
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
-
validate
-
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:
-
ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.