org.hibernate.validator.engine.groups
Class GroupChainGenerator

java.lang.Object
  extended by org.hibernate.validator.engine.groups.GroupChainGenerator

public class GroupChainGenerator
extends Object

Helper class used to resolve groups and sequences into a single chain of groups which can then be validated.

Author:
Hardy Ferentschik

Constructor Summary
GroupChainGenerator()
           
 
Method Summary
 GroupChain getGroupChainFor(Collection<Class<?>> groups)
          Generates a chain of groups to be validated given 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

GroupChainGenerator

public GroupChainGenerator()
Method Detail

getGroupChainFor

public GroupChain getGroupChainFor(Collection<Class<?>> groups)
Generates a chain of groups to be validated given the specified validation groups.

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

toString

public String toString()
Overrides:
toString in class Object


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