/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
 */
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.
Author:Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Gunnar Morling
Type parameters:
  • <C> – The type represented by this creational context.
/** * 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 <C> The type represented by this creational context. * * @author Kevin Pollet &lt;kevin.pollet@serli.com&gt; (C) 2011 SERLI * @author Gunnar Morling */
public interface TypeConstraintMappingContext<C> extends Constrainable<TypeConstraintMappingContext<C>>, ConstraintMappingTarget, PropertyTarget, MethodTarget, ConstructorTarget, AnnotationProcessingOptions<TypeConstraintMappingContext<C>>, AnnotationIgnoreOptions<TypeConstraintMappingContext<C>> {
Defines that all annotations for this type should be ignored.
Returns:The current creational context following the method chaining pattern.
/** * Defines that all annotations for this type should be ignored. * * @return The current creational context following the method chaining pattern. */
TypeConstraintMappingContext<C> ignoreAllAnnotations();
Defines the default group sequence for current type.
Params:
  • defaultGroupSequence – the default group sequence.
Returns:The current creational context following the method chaining pattern.
/** * 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<C> defaultGroupSequence(Class<?>... defaultGroupSequence);
Defines the default group sequence provider for the current type.
Params:
  • defaultGroupSequenceProviderClass – The default group sequence provider class.
Returns:The current creational context following the method chaining pattern.
/** * 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<C> defaultGroupSequenceProviderClass( Class<? extends DefaultGroupSequenceProvider<? super C>> defaultGroupSequenceProviderClass); }