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

personal.aug.easy.validation.EasyValidation Maven / Gradle / Ivy

package personal.aug.easy.validation;

import java.util.Map;

import personal.aug.easy.validation.process.Processing;

/**
 * Just extend this class and call validate() function to validate an object.
 * 
 * @author AUG
 *
 */
public abstract class EasyValidation {

	private Processing processing;

	public EasyValidation() {
		processing = new Processing();
	}

	/**
	 * Validate an instance object marked with Validate annotation.
	 * 
	 * @return a Map holder the validation values...
	 * @throws Exception
	 * @author AUG
	 */
	public Map validate() throws Exception {
		return processing.processing(this.getClass(), this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy