org.hibernate.validator.valuehandling

## Annotation Type UnwrapValidatedValue

-     @Documented
      @Target(value={METHOD,FIELD,CONSTRUCTOR,PARAMETER})
      @Retention(value=RUNTIME)
      public @interface UnwrapValidatedValue

  When specified on properties (as represented by fields or property getters), parameters or executables, the value of the annotated element will be unwrapped from a container type prior to validation. This is useful when working with wrapper types such as `JAXBElement` or an `Optional` type where constraints should not apply to the container but to the wrapped element:

       @Size(max = 10)
       @UnwrapValidatedValue
       private JAXBElement<String> name;

  For each type to be unwrapped, a corresponding `ValidatedValueUnwrapper` implementation must be registered.
  Author:
    Gunnar Morling
  Experimental
    This API is considered experimental and may change in future revisions

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved