Examples of requiresUnwrapping()


Examples of org.hibernate.validator.internal.metadata.aggregated.ConstraintMetaData.requiresUnwrapping()

        Object value = getValue( valueContext.getCurrentBean(), cascadable );

        // Value can be wrapped (e.g. Optional<Address>). Try to unwrap it
        ConstraintMetaData metaData = (ConstraintMetaData) cascadable;
        if ( metaData.requiresUnwrapping() ) {
          setValidatedValueHandlerToValueContextIfPresent( valueContext, metaData );
          valueContext.setCurrentValidatedValue( value );
          value = valueContext.getCurrentValidatedValue();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.