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

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


        defaultPackage,
        constraintHelper,
        annotationProcessingOptions
    );

    return new ConstrainedExecutable(
        ConfigurationSource.XML,
        ConstraintLocation.forReturnValue( executableElement ),
        parameterMetaData,
        crossParameterConstraints,
        returnValueConstraints,
View Full Code Here


      Map<Class<?>, Class<?>> groupConversions = GroupConversionBuilder.buildGroupConversionMap(
          getterType.getConvertGroup(),
          defaultPackage
      );

      ConstrainedExecutable constrainedGetter = new ConstrainedExecutable(
          ConfigurationSource.XML,
          constraintLocation,
          Collections.<ConstrainedParameter>emptyList(),
          Collections.<MetaConstraint<?>>emptySet(),
          metaConstraints,
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

          isCascading,
          isUnwrapValidatedValue()
      );
    }
    else {
      return new ConstrainedExecutable(
          ConfigurationSource.API,
          ConstraintLocation.forProperty( 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,
        ConstraintLocation.forReturnValue( executable ),
        getParameters( constraintHelper, parameterNameProvider ),
        crossParameterContext != null ? crossParameterContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
        returnValueContext != null ? returnValueContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
View Full Code Here

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

    return typeContext;
  }

  public ConstrainedElement build(ConstraintHelper constraintHelper, ParameterNameProvider parameterNameProvider) {
    // TODO HV-919 Support specification of type parameter constraints via XML and API
    return new ConstrainedExecutable(
        ConfigurationSource.API,
        ConstraintLocation.forReturnValue( executable ),
        getParameters( constraintHelper, parameterNameProvider ),
        crossParameterContext != null ? crossParameterContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
        returnValueContext != null ? returnValueContext.getConstraints( constraintHelper ) : Collections.<MetaConstraint<?>>emptySet(),
View Full Code Here

            method,
            methodType.getIgnoreAnnotations()
        );
      }

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

            constructor,
            constructorType.getIgnoreAnnotations()
        );
      }

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

        constraintHelper,
        annotationProcessingOptions
    );

    // TODO HV-919 Support specification of type parameter constraints via XML and API
    return new ConstrainedExecutable(
        ConfigurationSource.XML,
        ConstraintLocation.forReturnValue( executableElement ),
        parameterMetaData,
        crossParameterConstraints,
        returnValueConstraints,
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.