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

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


      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


    Set<ConstrainedElement> allPropertyMetaData = newHashSet();
    for ( BeanConstraintLocation oneConfiguredProperty : allConfiguredProperties ) {
      if ( oneConfiguredProperty.getElementType() == ElementType.FIELD ) {
        allPropertyMetaData.add(
            new ConstrainedField(
                ConfigurationSource.API,
                oneConfiguredProperty,
                asMetaConstraints( constraintsByLocation.get( oneConfiguredProperty ) ),
                Collections.<Class<?>, Class<?>>emptyMap(),
                cascades.contains( oneConfiguredProperty )
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

      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

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.