org.hibernate.validator.internal.cfg.context
Class TypeConstraintMappingContextImpl<C>
java.lang.Object
org.hibernate.validator.internal.cfg.context.ConstraintMappingContextImplBase
org.hibernate.validator.internal.cfg.context.TypeConstraintMappingContextImpl<C>
- Type Parameters:
C - The type represented by this creational context.
- All Implemented Interfaces:
- AnnotationProcessingOptions<TypeConstraintMappingContext<C>>, Constrainable<TypeConstraintMappingContext<C>>, MethodTarget, PropertyTarget, TypeConstraintMappingContext<C>, TypeTarget
public final class TypeConstraintMappingContextImpl<C>
- extends ConstraintMappingContextImplBase
- implements TypeConstraintMappingContext<C>
Constraint mapping creational context which allows to configure the class-level constraints for one bean.
- Author:
- Hardy Ferentschik, Gunnar Morling, Kevin Pollet (C) 2011 SERLI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.validator.cfg.context.TypeTarget |
type |
TypeConstraintMappingContextImpl
public TypeConstraintMappingContextImpl(Class<?> beanClass,
ConstraintMappingContext mapping)
constraint
public TypeConstraintMappingContext<C> constraint(ConstraintDef<?,?> definition)
- Description copied from interface:
Constrainable
- Adds a new constraint.
- Specified by:
constraint in interface Constrainable<TypeConstraintMappingContext<C>>
- Parameters:
definition - The constraint to add.
- Returns:
- The current creational context following the method chaining pattern.
ignoreAnnotations
public TypeConstraintMappingContext<C> ignoreAnnotations()
- Description copied from interface:
AnnotationProcessingOptions
- Specifies that annotations specified on the configured type or property should be ignored.
- Specified by:
ignoreAnnotations in interface AnnotationProcessingOptions<TypeConstraintMappingContext<C>>
- Returns:
- Returns itself for method chaining.
ignoreAllAnnotations
public TypeConstraintMappingContext<C> ignoreAllAnnotations()
- Description copied from interface:
TypeConstraintMappingContext
- Defines that all annotations for this type should be ignored.
- Specified by:
ignoreAllAnnotations in interface TypeConstraintMappingContext<C>
- Returns:
- The current creational context following the method chaining pattern.
defaultGroupSequence
public TypeConstraintMappingContext<C> defaultGroupSequence(Class<?>... defaultGroupSequence)
- Description copied from interface:
TypeConstraintMappingContext
- Defines the default group sequence for current type.
- Specified by:
defaultGroupSequence in interface TypeConstraintMappingContext<C>
- Parameters:
defaultGroupSequence - the default group sequence.
- Returns:
- The current creational context following the method chaining pattern.
defaultGroupSequenceProviderClass
public TypeConstraintMappingContext<C> defaultGroupSequenceProviderClass(Class<? extends DefaultGroupSequenceProvider<? super C>> defaultGroupSequenceProviderClass)
- Description copied from interface:
TypeConstraintMappingContext
- Defines the default group sequence provider for the current type.
- Specified by:
defaultGroupSequenceProviderClass in interface TypeConstraintMappingContext<C>
- Parameters:
defaultGroupSequenceProviderClass - The default group sequence provider class.
- Returns:
- The current creational context following the method chaining pattern.
Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved