Class NameValidator

Object
Validator
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
  • 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

      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.