Examples of BeanConstraintLocation


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

  public ConstrainedElement build(ConstraintHelper constraintHelper) {
    if ( member instanceof Field ) {
      return new ConstrainedField(
          ConfigurationSource.API,
          new BeanConstraintLocation( member ),
          getConstraints( constraintHelper ),
          groupConversions,
          isCascading
      );
    }
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
          );
      constrainedElements.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,
        groupConversions,
        isCascading
    );
  }
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 ) );
  }
View Full Code Here

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

    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

    if ( !groupSequence.isEmpty() ) {
      defaultSequences.put( beanClass, groupSequence );
    }

    // constraints
    BeanConstraintLocation constraintLocation = new BeanConstraintLocation( beanClass );
    Set<MetaConstraint<?>> metaConstraints = newHashSet();
    for ( ConstraintType constraint : classType.getConstraint() ) {
      MetaConstraint<?> metaConstraint = MetaConstraintBuilder.buildMetaConstraint(
          constraintLocation,
          constraint,
View Full Code Here

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

   * @param beanClass The type hosting this constraint.
   * @param member The field or getter method hosting this constraint if this is
   * not a class-level constraint, otherwise null.
   */
  public BeanMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Class<?> beanClass, Member member) {
    super( constraintDescriptor, new BeanConstraintLocation( beanClass, member ) );
  }
View Full Code Here

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

    this.location = location;
  }

  public static <A extends Annotation> ConfiguredConstraint<A, BeanConstraintLocation> forType(ConstraintDef<?, A> constraint, Class<?> beanType) {
    return new ConfiguredConstraint<A, BeanConstraintLocation>(
        constraint, new BeanConstraintLocation( beanType )
    );
  }
View Full Code Here

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

  }

  public static <A extends Annotation> ConfiguredConstraint<A, BeanConstraintLocation> forProperty(ConstraintDef<?, A> constraint, Class<?> beanType, Member member) {

    return new ConfiguredConstraint<A, BeanConstraintLocation>(
        constraint, new BeanConstraintLocation( beanType, member )
    );
  }
View Full Code Here

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

    );
    return this;
  }

  public PropertyConstraintMappingContext valid() {
    mapping.addCascadeConfig( new BeanConstraintLocation( beanClass, member ) );
    return this;
  }
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.