C
- The type represented by this creational context.public final class TypeConstraintMappingContextImpl<C> extends Object implements TypeConstraintMappingContext<C>
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
beanClass |
protected ConstraintMappingContext |
mapping |
Constructor and Description |
---|
TypeConstraintMappingContextImpl(Class<?> beanClass,
ConstraintMappingContext mapping) |
Modifier and Type | Method and Description |
---|---|
TypeConstraintMappingContext<C> |
constraint(ConstraintDef<?,?> definition)
Adds a new constraint.
|
TypeConstraintMappingContext<C> |
defaultGroupSequence(Class<?>... defaultGroupSequence)
Defines the default group sequence for current type.
|
<T extends DefaultGroupSequenceProvider<? super C>> |
defaultGroupSequenceProvider(Class<T> defaultGroupSequenceProviderClass)
Defines the default group sequence provider for the current type.
|
TypeConstraintMappingContext<C> |
defaultGroupSequenceProviderClass(Class<? extends DefaultGroupSequenceProvider<? super C>> defaultGroupSequenceProviderClass)
Defines the default group sequence provider for the current type.
|
TypeConstraintMappingContext<C> |
ignoreAllAnnotations()
Defines that all annotations for this type should be ignored.
|
TypeConstraintMappingContext<C> |
ignoreAnnotations()
Specifies that annotations specified on the configured type or property should be ignored.
|
MethodConstraintMappingContext |
method(String name,
Class<?>... parameterTypes) |
PropertyConstraintMappingContext |
property(String property,
ElementType elementType) |
<C> TypeConstraintMappingContext<C> |
type(Class<C> type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
type
property
method
protected final Class<?> beanClass
protected final ConstraintMappingContext mapping
public TypeConstraintMappingContextImpl(Class<?> beanClass, ConstraintMappingContext mapping)
public TypeConstraintMappingContext<C> constraint(ConstraintDef<?,?> definition)
Constrainable
constraint
in interface Constrainable<TypeConstraintMappingContext<C>>
definition
- The constraint to add.public TypeConstraintMappingContext<C> ignoreAnnotations()
AnnotationProcessingOptions
ignoreAnnotations
in interface AnnotationProcessingOptions<TypeConstraintMappingContext<C>>
public TypeConstraintMappingContext<C> ignoreAllAnnotations()
TypeConstraintMappingContext
ignoreAllAnnotations
in interface TypeConstraintMappingContext<C>
public TypeConstraintMappingContext<C> defaultGroupSequence(Class<?>... defaultGroupSequence)
TypeConstraintMappingContext
defaultGroupSequence
in interface TypeConstraintMappingContext<C>
defaultGroupSequence
- the default group sequence.public <T extends DefaultGroupSequenceProvider<? super C>> TypeConstraintMappingContext<C> defaultGroupSequenceProvider(Class<T> defaultGroupSequenceProviderClass)
TypeConstraintMappingContext
defaultGroupSequenceProvider
in interface TypeConstraintMappingContext<C>
defaultGroupSequenceProviderClass
- The default group sequence provider class.public TypeConstraintMappingContext<C> defaultGroupSequenceProviderClass(Class<? extends DefaultGroupSequenceProvider<? super C>> defaultGroupSequenceProviderClass)
TypeConstraintMappingContext
defaultGroupSequenceProviderClass
in interface TypeConstraintMappingContext<C>
defaultGroupSequenceProviderClass
- The default group sequence provider class.public <C> TypeConstraintMappingContext<C> type(Class<C> type)
public PropertyConstraintMappingContext property(String property, ElementType elementType)
public MethodConstraintMappingContext method(String name, Class<?>... parameterTypes)
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved