org.hibernate.validator.internal.engine.groups
Class ValidationOrderGenerator

java.lang.Object
  extended by org.hibernate.validator.internal.engine.groups.ValidationOrderGenerator

public class ValidationOrderGenerator
extends Object

Helper class used to order groups and sequences into the right order for validation.

Author:
Hardy Ferentschik, Kevin Pollet (C) 2011 SERLI

Constructor Summary
ValidationOrderGenerator()
           
 
Method Summary
 ValidationOrder getValidationOrder(Collection<Class<?>> groups)
          Generates a order of groups and sequences for the specified validation groups.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationOrderGenerator

public ValidationOrderGenerator()
Method Detail

getValidationOrder

public ValidationOrder getValidationOrder(Collection<Class<?>> groups)
Generates a order of groups and sequences for the specified validation groups.

Parameters:
groups - The groups specified at the validation call.
Returns:
an instance of ValidationOrder defining the order in which validation has to occur.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved