javax.validation.metadata.ValidateUnwrappedValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javaee-web-api Show documentation
Show all versions of javaee-web-api Show documentation
Java(TM) EE 8 Web Profile Specification APIs
/*
* Bean Validation API
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package javax.validation.metadata;
import javax.validation.valueextraction.UnwrapByDefault;
import javax.validation.valueextraction.ValueExtractor;
/**
* The unwrapping behavior that can be applied to a specific constraint.
*
* @author Guillaume Smet
* @since 2.0
*/
public enum ValidateUnwrappedValue {
/**
* No specific unwrapping behavior has been defined for this constraint and the default
* behavior applies: if there is exactly one maximally-specific type-compliant
* {@link ValueExtractor} and this extractor is marked with {@link UnwrapByDefault}, this
* extractor is applied and the constraint is applied to the value(s) wrapped by the
* annotated container. Otherwise, no value extractor is applied.
*/
DEFAULT,
/**
* The value is unwrapped before validation, i.e. the constraint is applied to the
* value(s) wrapped by the annotated container.
*/
UNWRAP,
/**
* The value is not unwrapped before validation, i.e. the constraint is applied to the
* annotated element.
*/
SKIP;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy