Class ValidatorGenerator
- java.lang.Object
-
- com.google.gwt.core.ext.Generator
-
- de.knightsoftnet.validators.rebind.ValidatorGenerator
-
public final class ValidatorGenerator extends com.google.gwt.core.ext.GeneratorGenerates subclasses ofValidatorandGwtSpecificValidator. The generic validator only handles the classes listed in theGwtValidationannotation. SeeGwtValidationfor usage.
-
-
Constructor Summary
Constructors Constructor Description ValidatorGenerator()constructor called by the compiler via reflection.ValidatorGenerator(BeanHelperCache cache, Class<?>[] validGroups)constructor called from tests.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName)
-
-
-
Constructor Detail
-
ValidatorGenerator
public ValidatorGenerator()
constructor called by the compiler via reflection.
-
ValidatorGenerator
public ValidatorGenerator(BeanHelperCache cache, Class<?>[] validGroups)
constructor called from tests.- Parameters:
cache- bean helper cachevalidGroups- validation groups
-
-
Method Detail
-
generate
public String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName) throws com.google.gwt.core.ext.UnableToCompleteException
- Specified by:
generatein classcom.google.gwt.core.ext.Generator- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
-