Package org.opengis.test
Class ValidatorContainer
- java.lang.Object
-
- org.opengis.test.ValidatorContainer
-
public class ValidatorContainer extends java.lang.Object
A set of convenience methods for validating GeoAPI implementations. Everyvalidate
method defined in this class delegate their work to one of manyValidator
objects in various packages. Vendors can change the value of fields in this class if they wish to override some validation process.- Since:
- 2.2
- Version:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Validator>
all
An unmodifiable "live" list of all validators.CitationValidator
citation
The validator forCitation
and related objects.OperationValidator
coordinateOperation
The validator forCoordinateOperation
and related objects.CRSValidator
crs
The validator forCoordinateReferenceSystem
and related objects.CSValidator
cs
The validator forCoordinateSystem
and related objects.DatumValidator
datum
The validator forDatum
and related objects.ExtentValidator
extent
The validator forExtent
and related objects.GeometryValidator
geometry
The validator forGeometry
and related objects.NameValidator
naming
The validator forGenericName
and related objects.ParameterValidator
parameter
The validator forParameterValue
and related objects.
-
Constructor Summary
Constructors Constructor Description ValidatorContainer()
Creates a newValidatorContainer
initialised with default validators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(java.lang.Object object)
Dispatches the given object to one of thevalidate(object)
methods.void
validate(DirectPosition object)
Tests the conformance of the given object.void
validate(Envelope object)
Tests the conformance of the given object.void
validate(Citation object)
Tests the conformance of the given object.void
validate(BoundingPolygon object)
Tests the conformance of the given object.void
validate(Extent object)
Tests the conformance of the given object.void
validate(GeographicBoundingBox object)
Tests the conformance of the given object.void
validate(GeographicDescription object)
Tests the conformance of the given object.void
validate(GeographicExtent object)
Tests the conformance of the given object.void
validate(TemporalExtent object)
Tests the conformance of the given object.void
validate(VerticalExtent object)
Tests the conformance of the given object.void
validate(GeneralParameterDescriptor object)
Tests the conformance of the given object.void
validate(GeneralParameterValue object)
Tests the conformance of the given object.void
validate(ParameterDescriptor<?> object)
Tests the conformance of the given object.void
validate(ParameterDescriptorGroup object)
Tests the conformance of the given object.void
validate(ParameterValue<?> object)
Tests the conformance of the given object.void
validate(ParameterValueGroup object)
Tests the conformance of the given object.void
validate(CoordinateReferenceSystem object)
Tests the conformance of the given object.void
validate(DerivedCRS object)
Validates the given coordinate reference system.void
validate(EngineeringCRS object)
Validates the given coordinate reference system.void
validate(GeocentricCRS object)
Tests the conformance of the given object.void
validate(GeographicCRS object)
Tests the conformance of the given object.void
validate(ImageCRS object)
Validates the given coordinate reference system.void
validate(ProjectedCRS object)
Validates the given coordinate reference system.void
validate(TemporalCRS object)
Validates the given coordinate reference system.void
validate(VerticalCRS object)
Validates the given coordinate reference system.void
validate(CartesianCS object)
Tests the conformance of the given object.void
validate(CoordinateSystem object)
Tests the conformance of the given object.void
validate(CoordinateSystemAxis object)
Tests the conformance of the given object.void
validate(CylindricalCS object)
Tests the conformance of the given object.void
validate(EllipsoidalCS object)
Tests the conformance of the given object.void
validate(LinearCS object)
Tests the conformance of the given object.void
validate(PolarCS object)
Tests the conformance of the given object.void
validate(SphericalCS object)
Tests the conformance of the given object.void
validate(TimeCS object)
Tests the conformance of the given object.void
validate(UserDefinedCS object)
Tests the conformance of the given object.void
validate(VerticalCS object)
Tests the conformance of the given object.void
validate(Datum object)
Tests the conformance of the given object.void
validate(Ellipsoid object)
Tests the conformance of the given object.void
validate(EngineeringDatum object)
Tests the conformance of the given object.void
validate(GeodeticDatum object)
Tests the conformance of the given object.void
validate(ImageDatum object)
Tests the conformance of the given object.void
validate(PrimeMeridian object)
Tests the conformance of the given object.void
validate(TemporalDatum object)
Tests the conformance of the given object.void
validate(VerticalDatum object)
Tests the conformance of the given object.void
validate(IdentifiedObject object)
Tests the conformance of the given object.void
validate(ConcatenatedOperation object)
Tests the conformance of the given object.void
validate(Conversion object)
Tests the conformance of the given object.void
validate(CoordinateOperation object)
Tests the conformance of the given object.void
validate(Formula object)
Tests the conformance of the given object.void
validate(MathTransform object)
Tests the conformance of the given object.void
validate(OperationMethod object)
Tests the conformance of the given object.void
validate(PassThroughOperation object)
Tests the conformance of the given object.void
validate(Transformation object)
Tests the conformance of the given object.void
validate(ReferenceIdentifier object)
Tests the conformance of the given object.void
validate(GenericName object)
Tests the conformance of the given object.void
validate(InternationalString object)
Tests the conformance of the given object.void
validate(LocalName object)
Tests the conformance of the given object.void
validate(NameSpace object)
Tests the conformance of the given object.void
validate(ScopedName object)
Tests the conformance of the given object.
-
-
-
Field Detail
-
naming
public NameValidator 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.
-
citation
public CitationValidator 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.
-
extent
public ExtentValidator 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
public DatumValidator 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
public CSValidator 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
public CRSValidator 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
public ParameterValidator 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
public OperationValidator 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
public GeometryValidator 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.
-
all
public final java.util.List<Validator> 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
.
-
-
Method Detail
-
dispatch
public final void dispatch(java.lang.Object object)
Dispatches the given object to one of thevalidate(object)
methods. Use this method only if the type is unknow at compile-time.- Parameters:
object
- The object to test, ornull
.
-
validate
public final void validate(Extent object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(Extent)
-
validate
public final void validate(TemporalExtent object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(TemporalExtent)
-
validate
public final void validate(VerticalExtent object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(VerticalExtent)
-
validate
public final void validate(GeographicExtent object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.dispatch(GeographicExtent)
-
validate
public final void validate(GeographicDescription object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(GeographicDescription)
-
validate
public final void validate(BoundingPolygon object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(BoundingPolygon)
-
validate
public final void validate(GeographicBoundingBox object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ExtentValidator.validate(GeographicBoundingBox)
-
validate
public final void validate(Envelope object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
GeometryValidator.validate(Envelope)
-
validate
public final void validate(DirectPosition object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
GeometryValidator.validate(DirectPosition)
-
validate
public final void validate(CoordinateReferenceSystem object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CRSValidator.dispatch(CoordinateReferenceSystem)
-
validate
public final void validate(GeocentricCRS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CRSValidator.validate(GeocentricCRS)
-
validate
public final void validate(GeographicCRS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CRSValidator.validate(GeographicCRS)
-
validate
public final void validate(ProjectedCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(ProjectedCRS)
-
validate
public final void validate(DerivedCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(DerivedCRS)
-
validate
public final void validate(ImageCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(ImageCRS)
-
validate
public final void validate(EngineeringCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(EngineeringCRS)
-
validate
public final void validate(VerticalCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(VerticalCRS)
-
validate
public final void validate(TemporalCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.- See Also:
CRSValidator.validate(TemporalCRS)
-
validate
public final void validate(CoordinateSystem object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.dispatch(CoordinateSystem)
-
validate
public final void validate(CartesianCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(CartesianCS)
-
validate
public final void validate(EllipsoidalCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(EllipsoidalCS)
-
validate
public final void validate(SphericalCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(SphericalCS)
-
validate
public final void validate(CylindricalCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(CylindricalCS)
-
validate
public final void validate(PolarCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(PolarCS)
-
validate
public final void validate(LinearCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(LinearCS)
-
validate
public final void validate(VerticalCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(VerticalCS)
-
validate
public final void validate(TimeCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(TimeCS)
-
validate
public final void validate(UserDefinedCS object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(UserDefinedCS)
-
validate
public final void validate(CoordinateSystemAxis object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CSValidator.validate(CoordinateSystemAxis)
-
validate
public final void validate(Datum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.dispatch(Datum)
-
validate
public final void validate(PrimeMeridian object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(PrimeMeridian)
-
validate
public final void validate(Ellipsoid object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(Ellipsoid)
-
validate
public final void validate(GeodeticDatum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(GeodeticDatum)
-
validate
public final void validate(VerticalDatum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(VerticalDatum)
-
validate
public final void validate(TemporalDatum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(TemporalDatum)
-
validate
public final void validate(ImageDatum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(ImageDatum)
-
validate
public final void validate(EngineeringDatum object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
DatumValidator.validate(EngineeringDatum)
-
validate
public final void validate(CoordinateOperation object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.dispatch(CoordinateOperation)
-
validate
public final void validate(Conversion object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(Conversion)
-
validate
public final void validate(Transformation object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(Transformation)
-
validate
public final void validate(ConcatenatedOperation object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(ConcatenatedOperation)
-
validate
public final void validate(PassThroughOperation object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(PassThroughOperation)
-
validate
public final void validate(OperationMethod object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(OperationMethod)
-
validate
public final void validate(Formula object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(OperationMethod)
-
validate
public final void validate(MathTransform object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
OperationValidator.validate(MathTransform)
-
validate
public final void validate(GeneralParameterDescriptor object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.dispatch(GeneralParameterDescriptor)
-
validate
public final void validate(ParameterDescriptor<?> object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.validate(ParameterDescriptor)
-
validate
public final void validate(ParameterDescriptorGroup object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.validate(ParameterDescriptorGroup)
-
validate
public final void validate(GeneralParameterValue object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.dispatch(GeneralParameterValue)
-
validate
public final void validate(ParameterValue<?> object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.validate(ParameterValue)
-
validate
public final void validate(ParameterValueGroup object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ParameterValidator.validate(ParameterValueGroup)
-
validate
public final void validate(IdentifiedObject object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ReferencingValidator.dispatchObject(IdentifiedObject)
-
validate
public final void validate(ReferenceIdentifier object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
ReferencingValidator.validate(ReferenceIdentifier)
-
validate
public final void validate(Citation object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
CitationValidator.validate(Citation)
-
validate
public final void validate(GenericName object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
NameValidator.dispatch(GenericName)
-
validate
public final void validate(LocalName object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
NameValidator.validate(LocalName)
-
validate
public final void validate(ScopedName object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
NameValidator.validate(ScopedName)
-
validate
public final void validate(NameSpace object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
NameValidator.validate(NameSpace)
-
validate
public final void validate(InternationalString object)
Tests the conformance of the given object.- Parameters:
object
- The object to test, ornull
.- See Also:
NameValidator.validate(InternationalString)
-
-