Class ReferencingValidator

Object
Validator
ReferencingValidator
Direct Known Subclasses:
CRSValidator, CSValidator, DatumValidator, OperationValidator, ParameterValidator

public abstract class ReferencingValidator extends Validator
Base class for validators of IdentifiedObject and related objects from the org.opengis.referencing 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
  • Constructor Details

    • ReferencingValidator

      protected ReferencingValidator(ValidatorContainer container, String packageName)
      Creates a new validator instance.
      Parameters:
      container - the set of validators to use for validating other kinds of objects (see field javadoc).
      packageName - the name of the package containing the classes to be validated.
  • Method Details

    • dispatchObject

      public final void dispatchObject(IdentifiedObject object)
      For each interface implemented by the given object, invokes the corresponding validate(…) method defined in this package (if any).
      Parameters:
      object - the object to dispatch to validate(…) methods, or null.
    • validate

      public void validate(Identifier object)
      Ensures that the given identifier has a code.
      Parameters:
      object - the object to validate, or null.