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

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


        field.getAnnotation( ConvertGroup.List.class )
    );

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

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


    Set<ConstrainedElement> propertyMetaData = newHashSet();

    for ( ConstraintLocation oneConfiguredLocation : configuredLocations ) {
      if ( oneConfiguredLocation.getElementType() == ElementType.FIELD ) {
        propertyMetaData.add(
            new ConstrainedField(
                ConfigurationSource.XML,
                (BeanConstraintLocation) oneConfiguredLocation,
                constraintsByLocation.get( oneConfiguredLocation ),
                Collections.<Class<?>, Class<?>>emptyMap(),
                cascades.contains( oneConfiguredLocation )
View Full Code Here

      this.beanClass = beanClass;
      this.constraintHelper = constraintHelper;

      switch ( constrainedElement.getKind() ) {
        case FIELD:
          ConstrainedField constrainedField = (ConstrainedField) constrainedElement;
          propertyBuilder = new PropertyMetaData.Builder(
              beanClass,
              constrainedField,
              constraintHelper
          );
View Full Code Here

        field.getAnnotation( ConvertGroup.List.class )
    );

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

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

      this.beanClass = beanClass;
      this.constraintHelper = constraintHelper;

      switch ( constrainedElement.getKind() ) {
        case FIELD:
          ConstrainedField constrainedField = (ConstrainedField) constrainedElement;
          propertyBuilder = new PropertyMetaData.Builder(
              beanClass,
              constrainedField,
              constraintHelper
          );
View Full Code Here

    );

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

    return new ConstrainedField(
        ConfigurationSource.ANNOTATION,
        ConstraintLocation.forProperty( field ),
        constraints,
        groupConversions,
        isCascading,
View Full Code Here

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

      ConstrainedField constrainedField = new ConstrainedField(
          ConfigurationSource.XML,
          constraintLocation,
          metaConstraints,
          groupConversions,
          fieldType.getValid() != null,
View Full Code Here

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

      ConstrainedField constrainedField = new ConstrainedField(
          ConfigurationSource.XML,
          constraintLocation,
          metaConstraints,
          groupConversions,
          fieldType.getValid() != null
View Full Code Here

    return typeContext.method( name, parameterTypes );
  }

  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

        field.getAnnotation( ConvertGroup.List.class )
    );

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

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

TOP

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

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.