com.google.gwt.validation.rebind
Class ValidationMetadataFactory
java.lang.Object
com.google.gwt.validation.rebind.ValidationMetadataFactory
public class ValidationMetadataFactory
- extends java.lang.Object
Method Summary |
static java.util.ArrayList<ValidationPackage> |
getClassLevelValidatorsForClass(java.lang.Class<?> inputClass)
|
static java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getGroupSequenceMap(java.lang.Class<?> inputClass)
Returns a java.util.Hashset that contains the String key of the sequence name along
with a list of all of the groups in that sequence in the proper order. |
static java.util.ArrayList<ValidationPackage> |
getValidAnnotedPackages(java.lang.Class<?> inputClass)
|
static java.util.ArrayList<ValidationPackage> |
getValidatorsForClass(java.lang.Class<?> inputClass)
Returns a list of validators that apply to each method of a given class, that are given for the valid list of
groups and that are in order by group ordering as annotated in the class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationMetadataFactory
public ValidationMetadataFactory()
getValidatorsForClass
public static java.util.ArrayList<ValidationPackage> getValidatorsForClass(java.lang.Class<?> inputClass)
- Returns a list of validators that apply to each method of a given class, that are given for the valid list of
groups and that are in order by group ordering as annotated in the class. All field validators are converted
to the appropriate getter, if one exists. Only 0 argument methods are considered for constraint validation.
- Parameters:
className
-
- Returns:
getClassLevelValidatorsForClass
public static java.util.ArrayList<ValidationPackage> getClassLevelValidatorsForClass(java.lang.Class<?> inputClass)
getValidAnnotedPackages
public static java.util.ArrayList<ValidationPackage> getValidAnnotedPackages(java.lang.Class<?> inputClass)
getGroupSequenceMap
public static java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getGroupSequenceMap(java.lang.Class<?> inputClass)
- Returns a
java.util.Hashset
that contains the String key of the sequence name along
with a list of all of the groups in that sequence in the proper order.
- Parameters:
inputClass
- the class to check for GroupSequences
- Returns: