JavaScript is disabled on your browser.
Skip navigation links
javax.validation.constraintvalidation

Annotation Type SupportedValidationTarget



  • @Documented
     @Target(value=TYPE)
     @Retention(value=RUNTIME)
    public @interface SupportedValidationTarget
    Defines the target(s) a ConstraintValidator can validate.

    A ConstraintValidator can target the (returned) element annotated by the constraint, the array of parameters of a method or constructor (aka cross-parameter) or both.

    If @SupportedValidationTarget is not present, the ConstraintValidator targets the (returned) element annotated by the constraint.

    A ConstraintValidator targeting cross-parameter must accept Object[] (or Object) as the type of object it validates.

    Since:
    1.1
    Author:
    Emmanuel Bernard
    • Required Element Summary

      Required Elements
      Modifier and Type Required Element and Description
      ValidationTarget[] value
Skip navigation links

Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.

AltStyle によって変換されたページ (->オリジナル) /