/
TypeConstraintMappingContext.java
54 lines (49 loc) · 1.93 KB
/
TypeConstraintMappingContext.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* 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.
*
* @param <C> The type represented by this creational context.
*
* @author Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
* @author Gunnar Morling
*/
public interface TypeConstraintMappingContext<C> extends Constrainable<TypeConstraintMappingContext<C>>,
TypeTarget,
PropertyTarget,
MethodTarget,
ConstructorTarget,
AnnotationProcessingOptions<TypeConstraintMappingContext<C>>,
AnnotationIgnoreOptions<TypeConstraintMappingContext<C>> {
/**
* 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.
*
* @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.
*
* @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);
}