Class NameValidator

java.lang.Object
org.opengis.test.Validator
org.opengis.test.util.NameValidator

public class NameValidator extends Validator
Validates GenericName and related objects from the org.opengis.util package. This class should not be used directly; use the Validators convenience static methods instead.
Since:
2.2
Version:
3.0
  • Constructor Details

    • NameValidator

      public NameValidator(ValidatorContainer container)
      Creates a new validator.
      Parameters:
      container - The container of this validator.
  • Method Details

    • validate

      public void validate(InternationalString object)
      Ensures that the CharSequence methods are consistent with the toString() value.
      Parameters:
      object - The object to validate, or null.
    • validate

      public void validate(NameSpace object)
      Ensures that ISO 19103 or GeoAPI restrictions apply.
      Parameters:
      object - The object to validate, or null.
    • dispatch

      public void dispatch(GenericName object)
      Dispatches to validate(LocalName) or validate(ScopedName). Other implementations are silently ignored.
      Parameters:
      object - The object to validate, or null.
    • validate

      private void validate(GenericName object, List<? extends LocalName> parsedNames)
      Performs some tests that are common to all subclasses of GenericName. This method should not invokes validate(LocalName) or validate(ScopedName) in order to avoid never-ending loop.

      This method should not validate the scope, since it could leads to a never-ending loop.

    • validate

      public void validate(LocalName object)
      Ensures that ISO 19103 or GeoAPI restrictions apply.
      Parameters:
      object - The object to validate, or null.
    • validate

      public void validate(ScopedName object)
      Ensures that ISO 19103 or GeoAPI restrictions apply.
      Parameters:
      object - The object to validate, or null.