Package org.hibernate.validator.internal.metadata.aggregated

Examples of org.hibernate.validator.internal.metadata.aggregated.Validatable


   *
   * @param validationContext The execution context
   * @param valueContext Collected information for single validation
   */
  private <T, U, V> void validateCascadedConstraints(ValidationContext<T, ?> validationContext, ValueContext<U, V> valueContext) {
    Validatable validatable = valueContext.getCurrentValidatable();
    PathImpl originalPath = valueContext.getPropertyPath();
    Class<?> originalGroup = valueContext.getCurrentGroup();
    Integer originalParameterIndex = valueContext.getParameterIndex();

    for ( Cascadable oneCascadable : validatable.getCascadables() ) {

      valueContext.appendNode( oneCascadable.getName() );
      valueContext.setCurrentGroup( oneCascadable.convertGroup( originalGroup ) );

      //That's not so elegant. Will be not required when we collect all cascadables on the path in the context.
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.metadata.aggregated.Validatable

Copyright © 2018 www.massapicom. 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.