Package org.opengis.test
Class Validators
- Object
-
- Validators
-
public class Validators extends Object
A set of convenience static methods for validating GeoAPI implementations. Everyvalidatemethod defined in this class delegate their work to one of manyValidatorobjects in various packages. This class is especially convenient when used withstatic importstatements.Customization
To override some validation process on a system-wide basis, vendors can either assign a newValidatorContainerinstance to theDEFAULTstatic 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
ValidatorContainerand invoke its non-static methods from the vendor's test cases.- Since:
- 2.2
-
-
Field Summary
Fields Modifier and Type Field Description static ValidatorContainerDEFAULTThe default container to be used by all staticvalidatemethods.
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidators()For subclass constructors only.
-
Method Summary
Modifier and Type Method Description static voiddispatch(Object object)For 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 voidvalidate(Envelope object)Tests the conformance of the given object.static voidvalidate(Address object)Tests the conformance of the given object.static voidvalidate(Citation object)Tests the conformance of the given object.static voidvalidate(CitationDate... object)Tests the conformance of the given objects.static voidvalidate(Contact object)Tests the conformance of the given object.static voidvalidate(OnlineResource object)Tests the conformance of the given object.static voidvalidate(Party object)Tests the conformance of the given object.static voidvalidate(Responsibility object)Tests the conformance of the given object.static voidvalidate(Telephone object)Tests the conformance of the given object.static voidvalidate(BoundingPolygon object)Tests the conformance of the given object.static voidvalidate(Extent object)Tests 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(Metadata object)Tests 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(GeocentricCRS object)Tests the conformance of the given object.static voidvalidate(GeographicCRS object)Tests the conformance of the given object.static voidvalidate(ImageCRS object)Validates the given coordinate reference system.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 voidvalidate(LinearCS object)Tests the conformance of the given object.static voidvalidate(PolarCS object)Tests the conformance of the given object.static voidvalidate(SphericalCS object)Tests the conformance of the given object.static voidvalidate(TimeCS object)Tests the conformance of the given object.static voidvalidate(UserDefinedCS object)Tests the conformance of the given object.static voidvalidate(VerticalCS object)Tests the conformance of the given object.static voidvalidate(Datum object)Tests the conformance of the given object.static voidvalidate(Ellipsoid object)Tests 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)Tests the conformance of the given object.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 voidvalidate(Formula object)Tests 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(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 voidvalidate(LocalName object)Tests the conformance of the given object.static voidvalidate(NameSpace object)Tests the conformance of the given object.static voidvalidate(ScopedName object)Tests the conformance of the given object.
-
-
-
Field Detail
-
DEFAULT
public static ValidatorContainer 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 Detail
-
Validators
protected Validators()
For subclass constructors only.
-
-
Method Detail
-
dispatch
public static void dispatch(Object object)
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
public static void validate(Metadata object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
MetadataBaseValidator.validate(Metadata)
-
validate
public static 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 static void validate(CitationDate... object)
Tests the conformance of the given objects.- Parameters:
object- the objects to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(CitationDate...)
-
validate
public static void validate(Responsibility object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(Responsibility)
-
validate
public static void validate(Party object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(Party)
-
validate
public static void validate(Contact object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(Contact)
-
validate
public static void validate(Telephone object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(Telephone)
-
validate
public static void validate(Address object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(Address)
-
validate
public static void validate(OnlineResource object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
CitationValidator.validate(OnlineResource)
-
validate
public static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static void validate(ProjectedCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(ProjectedCRS)
-
validate
public static void validate(DerivedCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(DerivedCRS)
-
validate
public static void validate(ImageCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(ImageCRS)
-
validate
public static void validate(EngineeringCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(EngineeringCRS)
-
validate
public static void validate(VerticalCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(VerticalCRS)
-
validate
public static void validate(TemporalCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(TemporalCRS)
-
validate
public static void validate(CompoundCRS object)
Validates the given coordinate reference system.- Parameters:
object- the object to validate, ornull.- See Also:
CRSValidator.validate(CompoundCRS)
-
validate
public static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static void validate(Formula object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
OperationValidator.validate(Formula)
-
validate
public static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static void validate(Identifier object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- Since:
- 3.1
- See Also:
MetadataBaseValidator.validate(Identifier)
-
validate
public static 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 static 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 static 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 static 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 static void validate(InternationalString object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
NameValidator.validate(InternationalString)
-
validate
public static void validate(ImageReaderSpi object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
ImageValidator.validate(ImageReaderSpi)
-
validate
public static void validate(ImageWriterSpi object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
ImageValidator.validate(ImageWriterSpi)
-
validate
public static void validate(IIOMetadataFormat object)
Tests the conformance of the given object.- Parameters:
object- the object to test, ornull.- See Also:
ImageValidator.validate(IIOMetadataFormat)
-
-