@Documented @Target(value={METHOD,FIELD,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface UnwrapValidatedValue
JAXBElement or Optional 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.| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
value |
public abstract boolean value
true or false depending on whether unwrapping should occur. This flag can be used
to explicitly configure unwrapping in the case where there are constraint validator instances which can validate
the wrapper as well as the wrapped value.Copyright © 2017 JBoss by Red Hat. All rights reserved.