Class ValidatorCreator


  • public final class ValidatorCreator
    extends AbstractCreator
    Creates the validator for the given input class.
    • Constructor Detail

      • ValidatorCreator

        public ValidatorCreator​(com.google.gwt.core.ext.typeinfo.JClassType validatorType,
                                GwtValidation gwtValidation,
                                com.google.gwt.core.ext.TreeLogger logger,
                                com.google.gwt.core.ext.GeneratorContext context,
                                BeanHelperCache cache)
                         throws com.google.gwt.core.ext.UnableToCompleteException
        constructor.
        Parameters:
        validatorType - jclass type of the validator
        gwtValidation - gwt specific validator
        logger - tree logger
        context - generator context
        cache - bean helper cache
        Throws:
        com.google.gwt.core.ext.UnableToCompleteException - when cration can not be finishe
    • Method Detail

      • compose

        protected void compose​(com.google.gwt.user.rebind.ClassSourceFileComposerFactory composerFactory)
        Specified by:
        compose in class AbstractCreator
      • writeClassBody

        protected void writeClassBody​(com.google.gwt.user.rebind.SourceWriter sourceWriter)
        Specified by:
        writeClassBody in class AbstractCreator