Examples of BeanConstraintLocation


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

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

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

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

    // later we will make copies of this constraint descriptor when needed and adjust the ConstraintOrigin
    ConstraintDescriptorImpl<A> constraintDescriptor = new ConstraintDescriptorImpl<A>(
        annotation, constraintHelper, type, ConstraintOrigin.DEFINED_LOCALLY
    );

    return new MetaConstraint<A>( constraintDescriptor, new BeanConstraintLocation( beanClass, member ) );
  }
View Full Code Here

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

    Set<MetaConstraint<?>> classLevelConstraints = getClassLevelConstraints( beanClass );
    if ( !classLevelConstraints.isEmpty() ) {
      ConstrainedType classLevelMetaData =
          new ConstrainedType(
              ConfigurationSource.ANNOTATION,
              new BeanConstraintLocation( beanClass ),
              classLevelConstraints
          );
      propertyMetaData.add( classLevelMetaData );
    }
View Full Code Here

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

    boolean isCascading = field.isAnnotationPresent( Valid.class );

    return new ConstrainedField(
        ConfigurationSource.ANNOTATION,
        new BeanConstraintLocation( field ),
        constraints,
        isCascading
    );
  }
View Full Code Here

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

    }
    return constraintDescriptors;
  }

  private <A extends Annotation> MetaConstraint<?> createMetaConstraint(Class<?> declaringClass, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new BeanConstraintLocation( declaringClass ) );
  }
View Full Code Here

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

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

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

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

  }

  public PropertyConstraintMappingContext valid() {

    if ( member instanceof Field ) {
      mapping.addCascadeConfig( new BeanConstraintLocation( member ) );
    }
    else {
      mapping.addMethodCascadeConfig( new MethodConstraintLocation( (Method) member ) );
    }
View Full Code Here

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

    Set<MetaConstraint<?>> classLevelConstraints = getClassLevelConstraints( beanClass );
    if ( !classLevelConstraints.isEmpty() ) {
      ConstrainedType classLevelMetaData =
          new ConstrainedType(
              ConfigurationSource.ANNOTATION,
              new BeanConstraintLocation( beanClass ),
              classLevelConstraints
          );
      propertyMetaData.add( classLevelMetaData );
    }
View Full Code Here

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

    boolean isCascading = field.isAnnotationPresent( Valid.class );

    return
        new ConstrainedField(
            ConfigurationSource.ANNOTATION,
            new BeanConstraintLocation( field ),
            constraints,
            isCascading
        );
  }
View Full Code Here

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

    }
    return constraintDescriptors;
  }

  private <A extends Annotation> MetaConstraint<?> createMetaConstraint(Class<?> declaringClass, ConstraintDescriptorImpl<A> descriptor) {
    return new MetaConstraint<A>( descriptor, new BeanConstraintLocation( declaringClass ) );
  }
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.