Object
ValidatorContainer
A set of convenience methods for validating GeoAPI implementations. Every
validate
method defined in this class delegate their work to one of many Validator
objects
in various packages. Vendors can change the value of fields in this class if they wish to
override some validation process.
Customization
Allvalidate(…)
methods in this class are final because this class is not the extension
point for overriding validation processes. Instead, extend the appropriate Validator
subclass and assign an instance to the corresponding field in this class. For example in order
to override the validation of GeodeticCRS
objects,
one can do:
ValidatorContainer container = new ValidationContainer();
container.crs = new CRSValidator(container) {
@Override
public void validate(GeodeticCRS object) {
super.validate(object);
// Perform additional validation here.
}
};
- Since:
- 2.2
-
Field Summary
Modifier and TypeFieldDescriptionAn unmodifiable "live" list of all validators.The validator forCitation
and related objects.The validator forCoordinateOperation
and related objects.The validator forCoordinateReferenceSystem
and related objects.The validator forCoordinateSystem
and related objects.The validator forDatum
and related objects.The validator forExtent
and related objects.The validator forGeometry
and related objects.The validator for images and related objects.The validator forMaintenanceInformation
and related objects.The validator forMetadata
and related objects.The validator forGenericName
and related objects.The validator forParameterValue
and related objects.The validator forDataQuality
and related objects. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).final void
validate
(IIOMetadataFormat object) Tests the conformance of the given object.final void
validate
(ImageReaderSpi object) Tests the conformance of the given object.final void
validate
(ImageWriterSpi object) Tests the conformance of the given object.final void
validate
(DirectPosition object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(CitationDate... object) Tests the conformance of the given objects.final void
Tests the conformance of the given object.final void
validate
(OnlineResource object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(Responsibility object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(BoundingPolygon object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(GeographicBoundingBox object) Tests the conformance of the given object.final void
validate
(GeographicDescription object) Tests the conformance of the given object.final void
validate
(GeographicExtent object) Tests the conformance of the given object.final void
validate
(TemporalExtent object) Tests the conformance of the given object.final void
validate
(VerticalExtent object) Tests the conformance of the given object.final void
validate
(Identifier object) Tests the conformance of the given object.final void
validate
(MaintenanceInformation object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(ConformanceResult object) Tests the conformance of the given object.final void
validate
(CoverageResult object) Tests the conformance of the given object.final void
validate
(DataQuality object) Tests the conformance of the given object.final void
validate
(DescriptiveResult object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(PositionalAccuracy object) Tests the conformance of the given object.final void
validate
(QuantitativeResult object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(GeneralParameterDescriptor object) Tests the conformance of the given object.final void
validate
(GeneralParameterValue object) Tests the conformance of the given object.final void
validate
(ParameterDescriptor<?> object) Tests the conformance of the given object.final void
validate
(ParameterDescriptorGroup object) Tests the conformance of the given object.final void
validate
(ParameterValue<?> object) Tests the conformance of the given object.final void
validate
(ParameterValueGroup object) Tests the conformance of the given object.final void
validate
(CompoundCRS object) Validates the given coordinate reference system.final void
validate
(CoordinateReferenceSystem object) Tests the conformance of the given object.final void
validate
(DerivedCRS object) Validates the given coordinate reference system.final void
validate
(EngineeringCRS object) Validates the given coordinate reference system.final void
validate
(GeodeticCRS object) Tests the conformance of the given object.final void
Deprecated.final void
validate
(ProjectedCRS object) Validates the given coordinate reference system.final void
validate
(TemporalCRS object) Validates the given coordinate reference system.final void
validate
(VerticalCRS object) Validates the given coordinate reference system.final void
validate
(CartesianCS object) Tests the conformance of the given object.final void
validate
(CoordinateSystem object) Tests the conformance of the given object.final void
validate
(CoordinateSystemAxis object) Tests the conformance of the given object.final void
validate
(CylindricalCS object) Tests the conformance of the given object.final void
validate
(EllipsoidalCS object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(SphericalCS object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(UserDefinedCS object) Deprecated.final void
validate
(VerticalCS object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(DatumEnsemble<?> object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(EngineeringDatum object) Tests the conformance of the given object.final void
validate
(GeodeticDatum object) Tests the conformance of the given object.final void
validate
(ImageDatum object) Deprecated.ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.final void
validate
(PrimeMeridian object) Tests the conformance of the given object.final void
validate
(TemporalDatum object) Tests the conformance of the given object.final void
validate
(VerticalDatum object) Tests the conformance of the given object.final void
validate
(IdentifiedObject object) Tests the conformance of the given object.final void
validate
(ObjectDomain object) Tests the conformance of the given object.final void
validate
(ConcatenatedOperation object) Tests the conformance of the given object.final void
validate
(Conversion object) Tests the conformance of the given object.final void
validate
(CoordinateOperation object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(MathTransform object) Tests the conformance of the given object.final void
validate
(OperationMethod object) Tests the conformance of the given object.final void
validate
(PassThroughOperation object) Tests the conformance of the given object.final void
validate
(PointMotionOperation object) Tests the conformance of the given object.final void
validate
(Transformation object) Tests the conformance of the given object.final void
validate
(GenericName object) Tests the conformance of the given object.final void
validate
(InternationalString object) Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
Tests the conformance of the given object.final void
validate
(ScopedName object) Tests the conformance of the given object.
-
Field Details
-
naming
The validator forGenericName
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
metadata
The validator forMetadata
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however.- Since:
- 3.1
-
citation
The validator forCitation
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
quality
The validator forDataQuality
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however.- Since:
- 3.1
-
maintenance
The validator forMaintenanceInformation
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however.- Since:
- 3.1
-
extent
The validator forExtent
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
datum
The validator forDatum
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
cs
The validator forCoordinateSystem
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
crs
The validator forCoordinateReferenceSystem
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
parameter
The validator forParameterValue
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
coordinateOperation
The validator forCoordinateOperation
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
geometry
The validator forGeometry
and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
image
The validator for images and related objects. Vendors can change this field to a different validator, or change the setting of the referenced validator. This field shall not be set tonull
however. -
all
An unmodifiable "live" list of all validators. Any change to the value of a field declared in this class is reflected immediately in this list (so this list is unmodifiable but not immutable). This list is convenient if the same setting must be applied on all validators, for example in order to change theirlogger
setting or to set their setrequireMandatoryAttributes
field tofalse
.
-
-
Constructor Details
-
ValidatorContainer
public ValidatorContainer()Creates a newValidatorContainer
initialized with newValidator
instances. Note that this constructor does not inherit the configuration of theValidators.DEFAULT
instance.
-
-
Method Details
-
dispatch
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any). Use this method only if the type is unknown at compile-time.- Parameters:
object
- The object to dispatch tovalidate(…)
methods, ornull
.
-
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.ImageCRS
is replaced byEngineeringCRS
as 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.ImageCRS
is replaced byEngineeringCRS
as 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
.- 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
.- 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
.- 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:
-
ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.