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
FieldsModifier and TypeFieldDescriptionAn unmodifiable "live" list of all validators.The validator forCitationand related objects.The validator forCoordinateOperationand related objects.The validator forCoordinateReferenceSystemand related objects.The validator forCoordinateSystemand related objects.The validator forDatumand related objects.The validator forExtentand related objects.The validator forGeometryand related objects.The validator for images and related objects.The validator forMaintenanceInformationand related objects.The validator forMetadataand related objects.The validator forGenericNameand related objects.The validator forParameterValueand related objects.The validator forDataQualityand related objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidFor each interface implemented by the given object, invokes the correspondingvalidate(…)method defined in this class (if any).final voidvalidate(IIOMetadataFormat object) Tests the conformance of the given object.final voidvalidate(ImageReaderSpi object) Tests the conformance of the given object.final voidvalidate(ImageWriterSpi object) Tests the conformance of the given object.final voidvalidate(DirectPosition object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidTests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(CitationDate... object) Tests the conformance of the given objects.final voidTests the conformance of the given object.final voidvalidate(OnlineResource object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(Responsibility object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(BoundingPolygon object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(GeographicBoundingBox object) Tests the conformance of the given object.final voidvalidate(GeographicDescription object) Tests the conformance of the given object.final voidvalidate(GeographicExtent object) Tests the conformance of the given object.final voidvalidate(TemporalExtent object) Tests the conformance of the given object.final voidvalidate(VerticalExtent object) Tests the conformance of the given object.final voidvalidate(Identifier object) Tests the conformance of the given object.final voidvalidate(MaintenanceInformation object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(ConformanceResult object) Tests the conformance of the given object.final voidvalidate(CoverageResult object) Tests the conformance of the given object.final voidvalidate(DataQuality object) Tests the conformance of the given object.final voidvalidate(DescriptiveResult object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(PositionalAccuracy object) Tests the conformance of the given object.final voidvalidate(QuantitativeResult object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(GeneralParameterDescriptor object) Tests the conformance of the given object.final voidvalidate(GeneralParameterValue object) Tests the conformance of the given object.final voidvalidate(ParameterDescriptor<?> object) Tests the conformance of the given object.final voidvalidate(ParameterDescriptorGroup object) Tests the conformance of the given object.final voidvalidate(ParameterValue<?> object) Tests the conformance of the given object.final voidvalidate(ParameterValueGroup object) Tests the conformance of the given object.final voidvalidate(CompoundCRS object) Validates the given coordinate reference system.final voidvalidate(CoordinateReferenceSystem object) Tests the conformance of the given object.final voidvalidate(DerivedCRS object) Validates the given coordinate reference system.final voidvalidate(EngineeringCRS object) Validates the given coordinate reference system.final voidvalidate(GeodeticCRS object) Tests the conformance of the given object.final voidDeprecated.final voidvalidate(ProjectedCRS object) Validates the given coordinate reference system.final voidvalidate(TemporalCRS object) Validates the given coordinate reference system.final voidvalidate(VerticalCRS object) Validates the given coordinate reference system.final voidvalidate(CartesianCS object) Tests the conformance of the given object.final voidvalidate(CoordinateSystem object) Tests the conformance of the given object.final voidvalidate(CoordinateSystemAxis object) Tests the conformance of the given object.final voidvalidate(CylindricalCS object) Tests the conformance of the given object.final voidvalidate(EllipsoidalCS object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(SphericalCS object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(UserDefinedCS object) Deprecated.final voidvalidate(VerticalCS object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(DatumEnsemble<?> object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(EngineeringDatum object) Tests the conformance of the given object.final voidvalidate(GeodeticDatum object) Tests the conformance of the given object.final voidvalidate(ImageDatum object) Deprecated.ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.final voidvalidate(PrimeMeridian object) Tests the conformance of the given object.final voidvalidate(TemporalDatum object) Tests the conformance of the given object.final voidvalidate(VerticalDatum object) Tests the conformance of the given object.final voidvalidate(IdentifiedObject object) Tests the conformance of the given object.final voidvalidate(ObjectDomain object) Tests the conformance of the given object.final voidvalidate(ConcatenatedOperation object) Tests the conformance of the given object.final voidvalidate(Conversion object) Tests the conformance of the given object.final voidvalidate(CoordinateOperation object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(MathTransform object) Tests the conformance of the given object.final voidvalidate(OperationMethod object) Tests the conformance of the given object.final voidvalidate(PassThroughOperation object) Tests the conformance of the given object.final voidvalidate(PointMotionOperation object) Tests the conformance of the given object.final voidvalidate(Transformation object) Tests the conformance of the given object.final voidvalidate(GenericName object) Tests the conformance of the given object.final voidvalidate(InternationalString object) Tests the conformance of the given object.final voidTests the conformance of the given object.final voidTests the conformance of the given object.final voidvalidate(ScopedName object) Tests the conformance of the given object.
-
Field Details
-
naming
The validator forGenericNameand 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 tonullhowever. -
metadata
The validator forMetadataand 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 tonullhowever.- Since:
- 3.1
-
citation
The validator forCitationand 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 tonullhowever. -
quality
The validator forDataQualityand 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 tonullhowever.- Since:
- 3.1
-
maintenance
The validator forMaintenanceInformationand 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 tonullhowever.- Since:
- 3.1
-
extent
The validator forExtentand 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 tonullhowever. -
datum
The validator forDatumand 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 tonullhowever. -
cs
The validator forCoordinateSystemand 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 tonullhowever. -
crs
The validator forCoordinateReferenceSystemand 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 tonullhowever. -
parameter
The validator forParameterValueand 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 tonullhowever. -
coordinateOperation
The validator forCoordinateOperationand 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 tonullhowever. -
geometry
The validator forGeometryand 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 tonullhowever. -
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 tonullhowever. -
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 theirloggersetting or to set their setrequireMandatoryAttributesfield tofalse.
-
-
Constructor Details
-
ValidatorContainer
public ValidatorContainer()Creates a newValidatorContainerinitialized with newValidatorinstances. Note that this constructor does not inherit the configuration of theValidators.DEFAULTinstance.
-
-
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.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.- 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:
-
ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.