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

org.hibernate.validator.cfg.context.Cascadable Maven / Gradle / Ivy

Go to download

JSR 380's RI, Hibernate Validator version ${hibernate-validator.version} and its dependencies repackaged as OSGi bundle

There is a newer version: 5.1.0
Show newest version
/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package org.hibernate.validator.cfg.context;

/**
 * Facet of a constraint mapping creational context which allows to mark the underlying
 * element as to be validated in a cascaded way.
 *
 * @author Gunnar Morling
 * @author Kevin Pollet <[email protected]> (C) 2011 SERLI
 */
public interface Cascadable> {

	/**
	 * Marks the current element (property, parameter etc.) as cascadable.
	 *
	 * @return The current creational context following the method chaining pattern.
	 */
	C valid();

	/**
	 * Adds a group conversion for this cascadable element. Several conversions may be configured for one element.
	 *
	 * @param from the source group of the conversion to be configured
	 *
	 * @return a creational context allow to set the target group of the conversion
	 */
	GroupConversionTargetContext convertGroup(Class from);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy