required(validate.required()); ignore(ignore()); if (validate.minlength() != -1) minlength(validate.minlength()); if (validate.maxlength() != -1) maxlength(validate.maxlength()); if (validate.minvalue() != Double.MIN_VALUE) minvalue(validate.minvalue()); if (validate.maxvalue() != Double.MAX_VALUE) maxvalue(validate.maxvalue()); if (!"".equals(validate.mask())) mask(validate.mask()); if (validate.converter() != TypeConverter.class) converter(validate.converter()); if (!"".equals(validate.expression())) expression(validate.expression()); if (validate.on().length > 0) on(validate.on());
    public ValidationMetadata(String property, Validate validate) {        // Copy over all the simple values        this.property = property;        required(validate.required());        ignore(ignore());        if (validate.minlength() != -1) minlength(validate.minlength());        if (validate.maxlength() != -1) maxlength(validate.maxlength());        if (validate.minvalue() != Double.MIN_VALUE) minvalue(validate.minvalue());        if (validate.maxvalue() != Double.MAX_VALUE) maxvalue(validate.maxvalue());        if (!"".equals(validate.mask())) mask(validate.mask());        if (validate.converter() != TypeConverter.class) converter(validate.converter());        if (!"".equals(validate.expression())) expression(validate.expression());        if (validate.on().length > 0) on(validate.on());    }