Package org.hibernate.validator.internal.engine.path

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


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

    }

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

      return new NodeBuilderImpl( messageTemplate, propertyPath );
    }

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

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

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

    }

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

    }

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

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

    }

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

      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

Related Classes of org.hibernate.validator.internal.engine.path.MessageAndPath

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.