Class ValidatorGenerator


  • public final class ValidatorGenerator
    extends com.google.gwt.core.ext.Generator
    Generates subclasses of Validator and GwtSpecificValidator. The generic validator only handles the classes listed in the GwtValidation annotation. See GwtValidation for usage.
    • 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 cache
        validGroups - 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:
        generate in class com.google.gwt.core.ext.Generator
        Throws:
        com.google.gwt.core.ext.UnableToCompleteException