org.hibernate.validator.cfg.context.TypeConstraintMappingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bean-validator Show documentation
Show all versions of bean-validator Show documentation
JSR 380's RI, Hibernate Validator version ${hibernate-validator.version} and its dependencies repackaged as OSGi bundle
/*
* 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
*/
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);
}