All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.srplib.validation.ValidationError Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package org.srplib.validation;

import java.io.Serializable;

/**
 * Models single validation error. Holds error message and optionally an invalid form field.
 *
 * @author Anton Pechinsky
 */
public interface ValidationError extends Serializable {

    /**
     * Returns validation error message.
     *
     * @return String error message.
     */
    String getError();

    /**
     * Returns validation context.
     *
     * 

This may be a field, a form, a panel etc. In other words context is reference to object is being validated.

* * @return Object an object representing context, null if error isn't associated with particular context. */ Object getContext(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy