Class GroupChainGenerator

java.lang.Object
de.knightsoftnet.validators.client.impl.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.

Modified from the Hibernate validator for use with GWT.

  • Constructor Details

  • Method Details

    • 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