Examples of ValidatorFormatException


Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param max 最大値
     * @param messageKey メッセージキー
     */
    public RangeFloatValidator(float min, float max, String messageKey) {
        super(messageKey);
        if (max <= min) throw new ValidatorFormatException("max is less than min: max=" + max + ", min=" + min);
        this.min = min;
        this.max = max;
    }
View Full Code Here

Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param prefix プレフィックス
     * @param messageKey メッセージキー
     */
    public StartWithValidator(String prefix, String messageKey) {
        super(messageKey);
        if (prefix == null || prefix.isEmpty()) throw new ValidatorFormatException("Illegal prefix: " + prefix);
        this.prefix = prefix;
    }
View Full Code Here

Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param max 最大値
     * @param messageKey メッセージキー
     */
    public RangeIntegerValidator(int min, int max, String messageKey) {
        super(messageKey);
        if (max <= min) throw new ValidatorFormatException("max is less than min: max=" + max + ", min=" + min);
        this.min = min;
        this.max = max;
    }
View Full Code Here

Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param messageKey メッセージキー
     * @throws ValidatorFormatException 正規表現パターンが不正な場合
     */
    public RegexValidator(String regex, String messageKey) throws ValidatorFormatException {
        super(messageKey);
        if (regex == null) throw new ValidatorFormatException("RegexValidator: " + regex);
        try {
            this.pattern = Pattern.compile(regex);
        } catch (PatternSyntaxException e) {
            throw new ValidatorFormatException("RegexValidator: " + regex, e);
        }
    }
View Full Code Here

Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param anno アノテーション
     * @return Validator
     * @throws ValidatorFormatException アノテーションの書式が不正な場合
     */
    protected Validator<T> getValidator(FormMessage formMessage, Annotation anno) throws ValidatorFormatException {
        throw new ValidatorFormatException("Undefined annotation: " + anno.annotationType().getName());
    }
View Full Code Here

Examples of org.pirkaengine.form.exception.ValidatorFormatException

     * @param suffix サフィックス
     * @param messageKey メッセージキー
     */
    public EndWithValidator(String suffix, String messageKey) {
        super(messageKey);
        if (suffix == null || suffix.isEmpty()) throw new ValidatorFormatException("Illegal suffix: " + suffix);
        this.suffix = suffix;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.