Class ParameterValidator


  • public class ParameterValidator
    extends ReferencingValidator
    Validates ParameterValue and related objects from the org.opengis.parameter 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
    • Method Detail

      • dispatch

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

        public int dispatch​(GeneralParameterValue 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 <T> void validate​(ParameterDescriptor<T> object)
        Validates the given descriptor.
        Type Parameters:
        T - the class of parameter values.
        Parameters:
        object - the object to validate, or null.
      • validate

        public <T> void validate​(ParameterValue<T> object)
        Validates the given parameter value.
        Type Parameters:
        T - the class of parameter values.
        Parameters:
        object - the object to validate, or null.
      • validate

        public void validate​(ParameterValueGroup object)
        Validates the given coordinate system.
        Parameters:
        object - the object to validate, or null.