Class AbstractCompositionConstraintValidator<T>

    • Constructor Detail

      • AbstractCompositionConstraintValidator

        protected AbstractCompositionConstraintValidator​(List<ConstraintValidator<T>> validators)
        Creates the base composition constraint validator with the specified validators.
        Parameters:
        validators - the specified validators
    • Method Detail

      • validate

        public final void validate​(T actual,
                                   HttpModelType httpModelType,
                                   String modelName)
        Description copied from interface: ConstraintValidator
        Validates the single actual.

        The state of the actual must not be altered.

        Specified by:
        validate in interface ConstraintValidator<T>
        Parameters:
        actual - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name