javax.validation.valueextraction.Unwrapping Maven / Gradle / Ivy
/*
* Bean Validation API
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package javax.validation.valueextraction;
import javax.validation.Payload;
/**
* Set of interfaces used in the {@code payload()} of a constraint to indicate if a value
* should be unwrapped before validation.
*
* This is used to overwrite the default configuration defined on the {@link ValueExtractor}.
*
* @author Guillaume Smet
* @since 2.0
*/
public interface Unwrapping {
/**
* Unwrap the value before validation.
*
* @since 2.0
*/
public interface Unwrap extends Payload {
}
/**
* Skip the unwrapping if it has been enabled on the {@link ValueExtractor} by the
* {@link UnwrapByDefault}
* annotation.
*
* @since 2.0
*/
public interface Skip extends Payload {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy