org.hibernate.validator.internal.cfg.context
Class PropertyConstraintMappingContextImpl
java.lang.Object
org.hibernate.validator.internal.cfg.context.ConstraintMappingContextImplBase
org.hibernate.validator.internal.cfg.context.PropertyConstraintMappingContextImpl
- All Implemented Interfaces:
- AnnotationProcessingOptions<PropertyConstraintMappingContext>, Cascadable<PropertyConstraintMappingContext>, Constrainable<PropertyConstraintMappingContext>, MethodTarget, PropertyConstraintMappingContext, PropertyTarget, TypeTarget
public final class PropertyConstraintMappingContextImpl
- extends ConstraintMappingContextImplBase
- implements PropertyConstraintMappingContext
Constraint mapping creational context which allows to configure the constraints for one bean property.
- 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 |
PropertyConstraintMappingContextImpl
public PropertyConstraintMappingContextImpl(Class<?> beanClass,
Member member,
ConstraintMappingContext mapping)
constraint
public PropertyConstraintMappingContext constraint(ConstraintDef<?,?> definition)
- Description copied from interface:
Constrainable
- Adds a new constraint.
- Specified by:
constraint in interface Constrainable<PropertyConstraintMappingContext>
- Parameters:
definition - The constraint to add.
- Returns:
- The current creational context following the method chaining pattern.
ignoreAnnotations
public PropertyConstraintMappingContext 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<PropertyConstraintMappingContext>
- Returns:
- Returns itself for method chaining.
valid
public PropertyConstraintMappingContext valid()
- Description copied from interface:
Cascadable
- Marks the current element (property, parameter etc.) as cascadable.
- Specified by:
valid in interface Cascadable<PropertyConstraintMappingContext>
- Returns:
- The current creational context following the method chaining pattern.
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved