Package org.hibernate.validator.internal.metadata.aggregated

Examples of org.hibernate.validator.internal.metadata.aggregated.BeanMetaData


    );
    Iterator<BeanMetaData<?>> beanMetaDataIterator = traverser.beanMetaDataIterator( path.iterator() );

    List<ElementDescriptor> elementDescriptors = new ArrayList<ElementDescriptor>();
    for ( Path.Node node : path ) {
      BeanMetaData beanMetaData = beanMetaDataIterator.next();
      if ( isClassLevelConstraintNode( node.getName() ) ) {
        BeanDescriptor beanDescriptor = beanMetaData.getBeanDescriptor();
        elementDescriptors.add( beanDescriptor );
      }
      else {
        PropertyDescriptor propertyDescriptor = beanMetaData.getBeanDescriptor()
            .getConstraintsForProperty( node.getName() );

        elementDescriptors.add( propertyDescriptor );
      }
    }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.metadata.aggregated.BeanMetaData

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.