Package org.hibernate.validator.internal.engine.groups

Examples of org.hibernate.validator.internal.engine.groups.ValidationOrder


  @Override
  public final <T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String propertyName, Object value, Class<?>... groups) {
    Contracts.assertNotNull( beanType, MESSAGES.beanTypeCannotBeNull() );

    sanityCheckPropertyPath( propertyName );
    ValidationOrder validationOrder = determineGroupValidationOrder( groups );
    ValidationContext<T> context = getValidationContext().forValidateValue( beanType );

    return validateValueInContext(
        context,
        value,
View Full Code Here


    //this might be the case for parameterless methods
    if ( parameterValues == null ) {
      return Collections.emptySet();
    }

    ValidationOrder validationOrder = determineGroupValidationOrder( groups );

    ValidationContext<T> context = getValidationContext().forValidateParameters(
        parameterNameProvider,
        object,
        executable,
View Full Code Here

    return context.getFailingConstraints();
  }

  private <T> Set<ConstraintViolation<T>> validateReturnValue(T object, ExecutableElement executable, Object returnValue, Class<?>... groups) {
    ValidationOrder validationOrder = determineGroupValidationOrder( groups );

    ValidationContext<T> context = getValidationContext().forValidateReturnValue(
        object,
        executable,
        returnValue
View Full Code Here

      }

      if ( !context.isAlreadyValidated(
          value, valueContext.getCurrentGroup(), valueContext.getPropertyPath()
      ) ) {
        ValidationOrder validationOrder = validationOrderGenerator.getValidationOrder(
            Arrays.<Class<?>>asList( valueContext.getCurrentGroup() )
        );

        ValueContext<?, Object> newValueContext;
        if ( value != null ) {
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.engine.groups.ValidationOrder

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.