org.opengis.test
Class Validators

Show UML class diagram
Object
  extended by Validators

public class Validators
extends Object

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 the static import feature of Java 5.

To override some validation process on a system-wide basis, vendors can change the DEFAULT static field or change the configuration of the object referenced by that field.

To override some validation process without changing the system-wide setting, users can create a new instance of ValidatorContainer and use that instance instead of this class.

Since:
GeoAPI 2.2

Field Summary
static ValidatorContainer DEFAULT
          The default container to be used by all static validate methods.
 
Constructor Summary
protected Validators()
          For subclass constructors only.
 
Method Summary
 void dispatch(Object object)
          Dispatches the given object to one of the validate(object) methods.
static void validate(BoundingPolygon object)
          Tests the conformance of the given object.
static void validate(CartesianCS object)
          Tests the conformance of the given object.
static void validate(Citation object)
          Tests the conformance of the given object.
static void validate(ConcatenatedOperation object)
          Tests the conformance of the given object.
static void validate(Conversion object)
          Tests the conformance of the given object.
static void validate(CoordinateOperation object)
          Tests the conformance of the given object.
static void validate(CoordinateReferenceSystem object)
          Tests the conformance of the given object.
static void validate(CoordinateSystem object)
          Tests the conformance of the given object.
static void validate(CoordinateSystemAxis object)
          Tests the conformance of the given object.
static void validate(CylindricalCS object)
          Tests the conformance of the given object.
static void validate(Datum object)
          Tests the conformance of the given object.
static void validate(DerivedCRS object)
          Validates the given coordinate reference system.
static void validate(DirectPosition object)
          Tests the conformance of the given object.
static void validate(Ellipsoid object)
          Tests the conformance of the given object.
static void validate(EllipsoidalCS object)
          Tests the conformance of the given object.
static void validate(EngineeringCRS object)
          Validates the given coordinate reference system.
static void validate(EngineeringDatum object)
          Tests the conformance of the given object.
static void validate(Envelope object)
          Tests the conformance of the given object.
static void validate(Extent object)
          Tests the conformance of the given object.
static void validate(Formula object)
          Tests the conformance of the given object.
static void validate(GeneralParameterDescriptor object)
          Tests the conformance of the given object.
static void validate(GeneralParameterValue object)
          Tests the conformance of the given object.
static void validate(GenericName object)
          Tests the conformance of the given object.
static void validate(GeocentricCRS object)
          Tests the conformance of the given object.
static void validate(GeodeticDatum object)
          Tests the conformance of the given object.
static void validate(GeographicBoundingBox object)
          Tests the conformance of the given object.
static void validate(GeographicCRS object)
          Tests the conformance of the given object.
static void validate(GeographicDescription object)
          Tests the conformance of the given object.
static void validate(GeographicExtent object)
          Tests the conformance of the given object.
static void validate(IdentifiedObject object)
          Tests the conformance of the given object.
static void validate(ImageCRS object)
          Validates the given coordinate reference system.
static void validate(ImageDatum object)
          Tests the conformance of the given object.
static void validate(InternationalString object)
          Tests the conformance of the given object.
static void validate(LinearCS object)
          Tests the conformance of the given object.
static void validate(LocalName object)
          Tests the conformance of the given object.
static void validate(MathTransform object)
          Tests the conformance of the given object.
static void validate(NameSpace object)
          Tests the conformance of the given object.
static void validate(OperationMethod object)
          Tests the conformance of the given object.
static void validate(ParameterDescriptor<?> object)
          Tests the conformance of the given object.
static void validate(ParameterDescriptorGroup object)
          Tests the conformance of the given object.
static void validate(ParameterValue<?> object)
          Tests the conformance of the given object.
static void validate(ParameterValueGroup object)
          Tests the conformance of the given object.
static void validate(PassThroughOperation object)
          Tests the conformance of the given object.
static void validate(PolarCS object)
          Tests the conformance of the given object.
static void validate(PrimeMeridian object)
          Tests the conformance of the given object.
static void validate(ProjectedCRS object)
          Validates the given coordinate reference system.
static void validate(ReferenceIdentifier object)
          Tests the conformance of the given object.
static void validate(ScopedName object)
          Tests the conformance of the given object.
static void validate(SphericalCS object)
          Tests the conformance of the given object.
static void validate(TemporalCRS object)
          Validates the given coordinate reference system.
static void validate(TemporalDatum object)
          Tests the conformance of the given object.
static void validate(TemporalExtent object)
          Tests the conformance of the given object.
static void validate(TimeCS object)
          Tests the conformance of the given object.
static void validate(Transformation object)
          Tests the conformance of the given object.
static void validate(UserDefinedCS object)
          Tests the conformance of the given object.
static void validate(VerticalCRS object)
          Validates the given coordinate reference system.
static void validate(VerticalCS object)
          Tests the conformance of the given object.
static void validate(VerticalDatum object)
          Tests the conformance of the given object.
static void validate(VerticalExtent object)
          Tests the conformance of the given object.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static ValidatorContainer DEFAULT
The default container to be used by all static validate methods. Vendors can change this field to a different container, or change the setting of the referenced container. This field shall not be set to null however.

Constructor Detail

Validators

protected Validators()
For subclass constructors only.

Method Detail

dispatch

public final void dispatch(Object object)
Dispatches the given object to one of the validate(object) methods. Use this method only if the type is unknow at compile-time.

Parameters:
object - The object to test, or null.

validate

public static void validate(Extent object)
Tests the conformance of the given object.

Parameters:
object - The object to test, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
See Also:
CRSValidator.validate(GeographicCRS)

validate

public static void validate(ProjectedCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(ProjectedCRS)

validate

public static void validate(DerivedCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(DerivedCRS)

validate

public static void validate(ImageCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(ImageCRS)

validate

public static void validate(EngineeringCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(EngineeringCRS)

validate

public static void validate(VerticalCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(VerticalCRS)

validate

public static void validate(TemporalCRS object)
Validates the given coordinate reference system.

Parameters:
object - The object to validate, or null.
See Also:
CRSValidator.validate(TemporalCRS)

validate

public static void validate(CoordinateSystem object)
Tests the conformance of the given object.

Parameters:
object - The object to test, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
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, or null.
See Also:
ReferencingValidator.dispatchObject(IdentifiedObject)

validate

public static void validate(ReferenceIdentifier object)
Tests the conformance of the given object.

Parameters:
object - The object to test, or null.
See Also:
ReferencingValidator.validate(ReferenceIdentifier)

validate

public static void validate(Citation object)
Tests the conformance of the given object.

Parameters:
object - The object to test, or null.
See Also:
CitationValidator.validate(Citation)

validate

public static void validate(GenericName object)
Tests the conformance of the given object.

Parameters:
object - The object to test, or null.
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, or null.
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, or null.
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, or null.
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, or null.
See Also:
NameValidator.validate(InternationalString)


Copyright © 1994-2009 Open Geospatial Consortium. All Rights Reserved.