Package org.hibernate.validator.internal.metadata.raw

Examples of org.hibernate.validator.internal.metadata.raw.ConstrainedExecutable


      if ( propertyBuilder != null && propertyBuilder.accepts( constrainedElement ) ) {
        propertyBuilder.add( constrainedElement );

        if ( !added && constrainedElement.getKind() == ConstrainedElementKind.METHOD && methodBuilder == null ) {
          ConstrainedExecutable constrainedMethod = (ConstrainedExecutable) constrainedElement;
          methodBuilder = new ExecutableMetaData.Builder(
              beanClass,
              constrainedMethod,
              constraintHelper
          );
View Full Code Here


    }

    @Override
    public void add(ConstrainedElement constrainedElement) {
      super.add( constrainedElement );
      ConstrainedExecutable constrainedExecutable = (ConstrainedExecutable) constrainedElement;

      constrainedExecutables.add( constrainedExecutable );
      isConstrained = isConstrained || constrainedExecutable.isConstrained();
      crossParameterConstraints.addAll( constrainedExecutable.getCrossParameterConstraints() );

      addToExecutablesByDeclaringType( constrainedExecutable );
    }
View Full Code Here

     *
     * @param executable The executable to merge.
     */
    private void addToExecutablesByDeclaringType(ConstrainedExecutable executable) {
      Class<?> beanClass = executable.getLocation().getBeanClass();
      ConstrainedExecutable mergedExecutable = executablesByDeclaringType.get( beanClass );

      if ( mergedExecutable != null ) {
        mergedExecutable = mergedExecutable.merge( executable );
      }
      else {
        mergedExecutable = executable;
      }

      executablesByDeclaringType.put( beanClass, mergedExecutable.merge( executable ) );
    }
View Full Code Here

          member.getAnnotation( ConvertGroup.List.class )
      );
      isCascading = executable.getAccessibleObject().isAnnotationPresent( Valid.class );
    }

    return new ConstrainedExecutable(
        ConfigurationSource.ANNOTATION,
        ConstraintLocation.forReturnValue( executable ),
        parameterConstraints,
        crossParameterConstraints,
        returnValueConstraints,
View Full Code Here

    }

    @Override
    public void add(ConstrainedElement constrainedElement) {
      super.add( constrainedElement );
      ConstrainedExecutable constrainedExecutable = (ConstrainedExecutable) constrainedElement;

      constrainedExecutables.add( constrainedExecutable );
      isConstrained = isConstrained || constrainedExecutable.isConstrained();
      crossParameterConstraints.addAll( constrainedExecutable.getCrossParameterConstraints() );

      addToExecutablesByDeclaringType( constrainedExecutable );
    }
View Full Code Here

     *
     * @param executable The executable to merge.
     */
    private void addToExecutablesByDeclaringType(ConstrainedExecutable executable) {
      Class<?> beanClass = executable.getLocation().getBeanClass();
      ConstrainedExecutable mergedExecutable = executablesByDeclaringType.get( beanClass );

      if ( mergedExecutable != null ) {
        mergedExecutable = mergedExecutable.merge( executable );
      }
      else {
        mergedExecutable = executable;
      }

      executablesByDeclaringType.put( beanClass, mergedExecutable.merge( executable ) );
    }
View Full Code Here

          groupConversions,
          isCascading
      );
    }
    else {
      return new ConstrainedExecutable(
          ConfigurationSource.API,
          new ExecutableConstraintLocation( (Method) member ),
          getConstraints( constraintHelper ),
          groupConversions,
          isCascading
View Full Code Here

  public TypeConstraintMappingContextImpl<?> getTypeContext() {
    return typeContext;
  }

  public ConstrainedElement build(ConstraintHelper constraintHelper, ParameterNameProvider parameterNameProvider) {
    return new ConstrainedExecutable(
        ConfigurationSource.API,
        new ExecutableConstraintLocation( executable ),
        getParameters( constraintHelper, parameterNameProvider ),
        crossParameterContext != null ? crossParameterContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
        returnValueContext != null ? returnValueContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
View Full Code Here

          member.getAnnotation( ConvertGroup.List.class )
      );
      isCascading = executable.getAccessibleObject().isAnnotationPresent( Valid.class );
    }

    return new ConstrainedExecutable(
        ConfigurationSource.ANNOTATION,
        new ExecutableConstraintLocation( executable ),
        parameterConstraints,
        crossParameterConstraints,
        returnValueConstraints,
View Full Code Here

            method,
            methodType.getIgnoreAnnotations()
        );
      }

      ConstrainedExecutable constrainedExecutable = parseExecutableType(
          defaultPackage,
          methodType.getParameter(),
          methodType.getCrossParameter(),
          methodType.getReturnValue(),
          methodExecutableElement,
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.metadata.raw.ConstrainedExecutable

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.