Examples of ValidationOrder


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

    //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

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

    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

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

          boolean isIndexable = isIndexable( type );

          // expand the group only if was created by group conversion;
          // otherwise we're looping through the right validation order
          // already and need only to pass the current element
          ValidationOrder validationOrder = validationOrderGenerator.getValidationOrder(
              group,
              group != originalGroup
          );

          validateCascadedConstraint(
View Full Code Here

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

    if ( !beanMetaDataManager.isConstrained( object.getClass() ) ) {
      return Collections.emptySet();
    }

    ValidationOrder validationOrder = determineGroupValidationOrder( groups );
    ValidationContext<T> validationContext = getValidationContext().forValidate( object );

    ValueContext<?, Object> valueContext = ValueContext.getLocalExecutionContext(
        object,
        beanMetaDataManager.getBeanMetaData( object.getClass() ),
View Full Code Here

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

  @Override
  public final <T> Set<ConstraintViolation<T>> validateProperty(T object, String propertyName, Class<?>... groups) {
    Contracts.assertNotNull( object, MESSAGES.validatedObjectMustNotBeNull() );

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

    if ( !beanMetaDataManager.isConstrained( context.getRootBeanClass() ) ) {
      return Collections.emptySet();
    }
View Full Code Here

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

    if ( !beanMetaDataManager.isConstrained( beanType ) ) {
      return Collections.emptySet();
    }

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

    return validateValueInContext(
        context,
        value,
View Full Code Here

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

    //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

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

    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

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

        if ( value != null ) {

          // expand the group only if was created by group conversion;
          // otherwise we're looping through the right validation order
          // already and need only to pass the current element
          ValidationOrder validationOrder = validationOrderGenerator.getValidationOrder(
              group,
              group != originalGroup
          );

          Type type = value.getClass();
View Full Code Here

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

  public final <T> Set<ConstraintViolation<T>> validate(T object, Class<?>... groups) {

    Contracts.assertNotNull( object, MESSAGES.validatedObjectMustNotBeNull() );

    ValidationOrder validationOrder = determineGroupValidationOrder( groups );

    ValidationContext<T, ConstraintViolation<T>> validationContext = ValidationContext.getContextForValidate(
        object, messageInterpolator, constraintValidatorFactory, getCachingTraversableResolver(), failFast
    );
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.