Class NameValidator


  • public class NameValidator
    extends Validator
    Validates GenericName and related objects from the org.opengis.util 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 Detail

    • Method Detail

      • 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 int dispatch​(GenericName 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​(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.