Package org.hibernate.validation.engine.groups

Examples of org.hibernate.validation.engine.groups.GroupChain


    if ( beanType == null ) {
      throw new IllegalArgumentException( "The bean type cannot be null." );
    }

    sanityCheckPropertyPath( propertyName );
    GroupChain groupChain = determineGroupExecutionOrder( groups );

    List<ConstraintViolation<T>> failingConstraintViolations = new ArrayList<ConstraintViolation<T>>();
    validateValue(
        beanType, value, PathImpl.createPathFromString( propertyName ), failingConstraintViolations, groupChain
    );
View Full Code Here


      else if ( isIndexable ) {
        currentPath.getLeafNode().setIndex( index );
      }

      if ( !context.isAlreadyValidated( value, currentGroup, currentPath ) ) {
        GroupChain groupChain = groupChainGenerator.getGroupChainFor(
            Arrays.asList(
                new Class<?>[] {
                    currentGroup
                }
            )
View Full Code Here

    return getUnorderedConstraintDescriptorsMatchingGroups( groups );
  }

  public Set<ConstraintDescriptor<?>> getUnorderedConstraintDescriptorsMatchingGroups(Class<?>... groups) {
    Set<ConstraintDescriptor<?>> matchingDescriptors = new HashSet<ConstraintDescriptor<?>>();
    GroupChain groupChain = new GroupChainGenerator().getGroupChainFor( Arrays.asList( groups ) );
    Iterator<Group> groupIterator = groupChain.getGroupIterator();
    while ( groupIterator.hasNext() ) {
      Group g = groupIterator.next();
      addMatchingDescriptorsForGroup( g.getGroup(), matchingDescriptors );
    }
    return Collections.unmodifiableSet( matchingDescriptors );
View Full Code Here

TOP

Related Classes of org.hibernate.validation.engine.groups.GroupChain

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.