类 ValidationAnnotationUtils

java.lang.Object
cn.taketoday.validation.annotation.ValidationAnnotationUtils

public abstract class ValidationAnnotationUtils extends Object
Utility class for handling validation annotations. Mainly for internal use within the framework.
从以下版本开始:
4.0
作者:
Christoph Dreis
  • 构造器详细资料

    • ValidationAnnotationUtils

      public ValidationAnnotationUtils()
  • 方法详细资料

    • determineValidationHints

      @Nullable public static Object[] determineValidationHints(Annotation ann)
      Determine any validation hints by the given annotation.

      This implementation checks for @jakarta.validation.Valid, Framework's Validated, and custom annotations whose name starts with "Valid".

      参数:
      ann - the annotation (potentially a validation annotation)
      返回:
      the validation hints to apply (possibly an empty array), or null if this annotation does not trigger any validation