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

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


          annotationProcessingOptions.ignoreAnnotationConstraintForClass(
              beanClass,
              bean.getIgnoreAnnotations()
          );

          ConstrainedType constrainedType = ConstrainedTypeBuilder.buildConstrainedType(
              bean.getClassType(),
              beanClass,
              defaultPackage,
              constraintHelper,
              annotationProcessingOptions,
View Full Code Here


    //TODO GM: currently class level constraints are represented by a PropertyMetaData. This
    //works but seems somewhat unnatural
    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

                constraintHelper
            );
          }
          break;
        case TYPE:
          ConstrainedType constrainedType = (ConstrainedType) constrainedElement;
          propertyBuilder = new PropertyMetaData.Builder(
              beanClass,
              constrainedType,
              constraintHelper
          );
View Full Code Here

    //TODO GM: currently class level constraints are represented by a PropertyMetaData. This
    //works but seems somewhat unnatural
    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

    //TODO GM: currently class level constraints are represented by a PropertyMetaData. This
    //works but seems somewhat unnatural
    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

    //TODO GM: currently class level constraints are represented by a PropertyMetaData. This
    //works but seems somewhat unnatural
    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

            )
        );
      }
      else if ( oneConfiguredLocation.getElementType() == ElementType.TYPE ) {
        propertyMetaData.add(
            new ConstrainedType(
                ConfigurationSource.XML,
                (BeanConstraintLocation) oneConfiguredLocation,
                constraintsByLocation.get( oneConfiguredLocation )
            )
        );
View Full Code Here

            )
        );
      }
      else {
        allPropertyMetaData.add(
            new ConstrainedType(
                ConfigurationSource.API,
                oneConfiguredProperty,
                asMetaConstraints( constraintsByLocation.get( oneConfiguredProperty ) )
            )
        );
View Full Code Here

          }
          break;

        case TYPE:

          ConstrainedType constrainedType = (ConstrainedType) constrainedElement;
          propertyBuilder = new PropertyMetaData.Builder(
              constrainedType,
              constraintHelper
          );
          break;
View Full Code Here

            )
        );
      }
      else {
        allPropertyMetaData.add(
            new ConstrainedType(
                ConfigurationSource.API,
                oneConfiguredProperty,
                asMetaConstraints( constraintsByLocation.get( oneConfiguredProperty ) )
            )
        );
View Full Code Here

TOP

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

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.