org.opengis.test.referencing
Class DatumValidator

Show UML class diagram
Object
  extended by Validator
      extended by ReferencingValidator
          extended by DatumValidator

public class DatumValidator
extends ReferencingValidator

Validates Datum and related objects from the org.opengis.datum package.

This class is provided for users wanting to override the validation methods. When the default behavior is sufficient, the Validators static methods provide a more convenient way to validate various kinds of objects.

Since:
2.2

Field Summary
 
Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
 
Constructor Summary
DatumValidator(ValidatorContainer container)
          Creates a new validator instance.
 
Method Summary
 int dispatch(Datum object)
          For each interface implemented by the given object, invokes the corresponding validate(...) method defined in this class (if any).
 void validate(Ellipsoid object)
          Validates the given ellipsoid.
 void validate(EngineeringDatum object)
          Validates the given datum.
 void validate(GeodeticDatum object)
          Validates the given datum.
 void validate(ImageDatum object)
          Validates the given datum.
 void validate(PrimeMeridian object)
          Validates the given prime meridian.
 void validate(TemporalDatum object)
          Validates the given datum.
 void validate(VerticalDatum object)
          Validates the given datum.
 
Methods inherited from class ReferencingValidator
dispatchObject, validate
 
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatumValidator

public DatumValidator(ValidatorContainer container)
Creates a new validator instance.

Parameters:
container - The set of validators to use for validating other kinds of objects (see field javadoc).
Method Detail

dispatch

public int dispatch(Datum object)
For each interface implemented by the given object, invokes the corresponding validate(...) method defined in this class (if any).

Parameters:
object - The object to dispatch to validate(...) methods, or null.
Returns:
Number of validate(...) methods invoked in this class for the given object.

validate

public void validate(PrimeMeridian object)
Validates the given prime meridian.

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

validate

public void validate(Ellipsoid object)
Validates the given ellipsoid. This method checks the following conditions:

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

validate

public void validate(GeodeticDatum object)
Validates the given datum.

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

validate

public void validate(VerticalDatum object)
Validates the given datum.

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

validate

public void validate(TemporalDatum object)
Validates the given datum.

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

validate

public void validate(ImageDatum object)
Validates the given datum.

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

validate

public void validate(EngineeringDatum object)
Validates the given datum.

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


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