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

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

There is a newer version: 8.0.1.Final
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;

import org.hibernate.validator.spi.group.DefaultGroupSequenceProvider;

/**
 * Constraint mapping creational context representing a type. Allows place
 * class-level constraints on that type, define its default group sequence (and provider)
 * and to navigate to other constraint targets.
 *
 * @param  The type represented by this creational context.
 *
 * @author Kevin Pollet <[email protected]> (C) 2011 SERLI
 * @author Gunnar Morling
 */
@SuppressWarnings("deprecation")
public interface TypeConstraintMappingContext extends Constrainable>,
		ConstraintMappingTarget,
		PropertyTarget,
		MethodTarget,
		ConstructorTarget,
		AnnotationProcessingOptions>,
		AnnotationIgnoreOptions> {

	/**
	 * Defines that all annotations for this type should be ignored.
	 *
	 * @return The current creational context following the method chaining pattern.
	 */
	TypeConstraintMappingContext ignoreAllAnnotations();

	/**
	 * Defines the default group sequence for current type.
	 *
	 * @param defaultGroupSequence the default group sequence.
	 *
	 * @return The current creational context following the method chaining pattern.
	 */
	TypeConstraintMappingContext defaultGroupSequence(Class... defaultGroupSequence);

	/**
	 * Defines the default group sequence provider for the current type.
	 *
	 * @param defaultGroupSequenceProviderClass The default group sequence provider class.
	 *
	 * @return The current creational context following the method chaining pattern.
	 */
	TypeConstraintMappingContext defaultGroupSequenceProviderClass(
			Class> defaultGroupSequenceProviderClass);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy