Examples of MessageAndPath


Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      // violations or not (or if there is no local ConstraintValidator at all).
      // If not we create a violation
      // using the error message in the annotation declaration at top level.
      if ( localViolationList.isEmpty() ) {
        final String message = (String) getDescriptor().getAttributes().get( "message" );
        MessageAndPath messageAndPath = new MessageAndPath( message, valueContext.getPropertyPath() );
        ConstraintViolation<T> violation = executionContext.createConstraintViolation(
            valueContext, messageAndPath, descriptor
        );
        constraintViolations.add( violation );
      }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      // violations or not (or if there is no local ConstraintValidator at all).
      // If not we create a violation
      // using the error message in the annotation declaration at top level.
      if ( localViolationList.isEmpty() ) {
        final String message = (String) getDescriptor().getAttributes().get( "message" );
        MessageAndPath messageAndPath = new MessageAndPath( message, valueContext.getPropertyPath() );
        E violation = executionContext.createConstraintViolation(
            valueContext, messageAndPath, descriptor
        );
        constraintViolations.add( violation );
      }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

    }

    List<MessageAndPath> returnedMessageAndPaths = new ArrayList<MessageAndPath>( messageAndPaths );
    if ( !defaultDisabled ) {
      returnedMessageAndPaths.add(
          new MessageAndPath( getDefaultConstraintMessageTemplate(), basePath )
      );
    }
    return returnedMessageAndPaths;
  }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      return new NodeBuilderImpl( messageTemplate, propertyPath );
    }

    @Override
    public ConstraintValidatorContext addConstraintViolation() {
      messageAndPaths.add( new MessageAndPath( messageTemplate, propertyPath ) );
      return ConstraintValidatorContextImpl.this;
    }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      return new InIterableNodeBuilderImpl( messageTemplate, propertyPath, name );
    }

    @Override
    public ConstraintValidatorContext addConstraintViolation() {
      messageAndPaths.add( new MessageAndPath( messageTemplate, propertyPath ) );
      return ConstraintValidatorContextImpl.this;
    }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

    }

    @Override
    public ConstraintValidatorContext addConstraintViolation() {
      propertyPath.addNode( leafNodeName );
      messageAndPaths.add( new MessageAndPath( messageTemplate, propertyPath ) );
      return ConstraintValidatorContextImpl.this;
    }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

    }

    @Override
    public ConstraintValidatorContext addConstraintViolation() {
      propertyPath.addNode( leafNodeName );
      messageAndPaths.add( new MessageAndPath( messageTemplate, propertyPath ) );
      return ConstraintValidatorContextImpl.this;
    }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      // violations or not (or if there is no local ConstraintValidator at all).
      // If not we create a violation
      // using the error message in the annotation declaration at top level.
      if ( localViolationList.isEmpty() ) {
        final String message = (String) getDescriptor().getAttributes().get( "message" );
        MessageAndPath messageAndPath = new MessageAndPath( message, valueContext.getPropertyPath() );
        ConstraintViolation<T> violation = executionContext.createConstraintViolation(
            valueContext, messageAndPath, descriptor
        );
        constraintViolations.add( violation );
      }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

    }

    List<MessageAndPath> returnedMessageAndPaths = new ArrayList<MessageAndPath>( messageAndPaths );
    if ( !defaultDisabled ) {
      returnedMessageAndPaths.add(
          new MessageAndPath( getDefaultConstraintMessageTemplate(), basePath )
      );
    }
    return returnedMessageAndPaths;
  }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.MessageAndPath

      propertyPath.addNode( name );
      return new NodeBuilderImpl( messageTemplate, propertyPath );
    }

    public ConstraintValidatorContext addConstraintViolation() {
      messageAndPaths.add( new MessageAndPath( messageTemplate, propertyPath ) );
      return ConstraintValidatorContextImpl.this;
    }
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.