Package org.hibernate.validator.internal.metadata.location

Examples of org.hibernate.validator.internal.metadata.location.ExecutableConstraintLocation


    return new MetaConstraint<A>( descriptor, new ExecutableConstraintLocation( member, parameterIndex ) );
  }

  private <A extends Annotation> MetaConstraint<A> createReturnValueMetaConstraint(ExecutableElement member,
      ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new ExecutableConstraintLocation( member ) );
  }
View Full Code Here


        annotationProcessingOptions
    );

    return new ConstrainedExecutable(
        ConfigurationSource.XML,
        new ExecutableConstraintLocation( executableElement ),
        parameterMetaData,
        crossParameterConstraints,
        returnValueConstraints,
        groupConversions,
        isCascaded
View Full Code Here

                        AnnotationProcessingOptionsImpl annotationProcessingOptions) {
    if ( returnValueType == null ) {
      return false;
    }

    ExecutableConstraintLocation constraintLocation = new ExecutableConstraintLocation( executableElement );
    for ( ConstraintType constraint : returnValueType.getConstraint() ) {
      MetaConstraint<?> metaConstraint = MetaConstraintBuilder.buildMetaConstraint(
          constraintLocation,
          constraint,
          executableElement.getElementType(),
View Full Code Here

    Set<ConstrainedExecutable> constrainedExecutables = newHashSet();
    List<String> alreadyProcessedGetterNames = newArrayList();
    for ( GetterType getterType : getterList ) {
      String getterName = getterType.getName();
      Method getter = findGetter( beanClass, getterName, alreadyProcessedGetterNames );
      ExecutableConstraintLocation constraintLocation = new ExecutableConstraintLocation( getter );

      Set<MetaConstraint<?>> metaConstraints = newHashSet();
      for ( ConstraintType constraint : getterType.getConstraint() ) {
        MetaConstraint<?> metaConstraint = MetaConstraintBuilder.buildMetaConstraint(
            constraintLocation,
View Full Code Here

                                    AnnotationProcessingOptionsImpl annotationProcessingOptions) {
    List<ConstrainedParameter> constrainedParameters = newArrayList();
    int i = 0;
    List<String> parameterNames = executableElement.getParameterNames( parameterNameProvider );
    for ( ParameterType parameterType : parameterList ) {
      ExecutableConstraintLocation constraintLocation = new ExecutableConstraintLocation( executableElement, i );
      Set<MetaConstraint<?>> metaConstraints = newHashSet();
      for ( ConstraintType constraint : parameterType.getConstraint() ) {
        MetaConstraint<?> metaConstraint = MetaConstraintBuilder.buildMetaConstraint(
            constraintLocation,
            constraint,
View Full Code Here

      for ( int i = 0; i < oneMethod.getParameterTypes().length; i++ ) {
        parameterMetaDataList.add(
            new ConstrainedParameter(
                ConfigurationSource.API,
                new ExecutableConstraintLocation( oneMethod, i ),
                parameterNames[i],
                asMetaConstraints( constraintsByParameter.get( i ) ),
                Collections.<Class<?>, Class<?>>emptyMap(),
                cascadesByParameter.containsKey( i )
            )
        );
      }

      ConstrainedExecutable methodMetaData = new ConstrainedExecutable(
          ConfigurationSource.API,
          new ExecutableConstraintLocation( oneMethod ),
          parameterMetaDataList,
          Collections.<MetaConstraint<?>>emptySet(),
          asMetaConstraints( constraintsByParameter.get( null ) ),
          Collections.<Class<?>, Class<?>>emptyMap(),
          cascadesByParameter.containsKey( null )
View Full Code Here

        executable
    );

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

      }

      metaData.add(
          new ConstrainedParameter(
              ConfigurationSource.ANNOTATION,
              new ExecutableConstraintLocation( executable, i ),
              parameterName,
              constraintsOfOneParameter,
              getGroupConversions( groupConversion, groupConversionList ),
              parameterIsCascading
          )
View Full Code Here

  private <A extends Annotation> MetaConstraint<?> createMetaConstraint(Member member, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new BeanConstraintLocation( member ) );
  }

  private <A extends Annotation> MetaConstraint<A> createParameterMetaConstraint(ExecutableElement member, int parameterIndex, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new ExecutableConstraintLocation( member, parameterIndex ) );
  }
View Full Code Here

  private <A extends Annotation> MetaConstraint<A> createParameterMetaConstraint(ExecutableElement member, int parameterIndex, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new ExecutableConstraintLocation( member, parameterIndex ) );
  }

  private <A extends Annotation> MetaConstraint<A> createReturnValueMetaConstraint(ExecutableElement member, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new ExecutableConstraintLocation( member, null ) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.metadata.location.ExecutableConstraintLocation

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.