Top Description Methods
org.hibernate.validator.cfg.context

public Interface AnnotationIgnoreOptions<C extends org.hibernate.validator.cfg.context.AnnotationIgnoreOptions<C>>

Known Direct Subinterfaces
org.hibernate.validator.cfg.context.ConstructorConstraintMappingContext, org.hibernate.validator.cfg.context.CrossParameterConstraintMappingContext, org.hibernate.validator.cfg.context.MethodConstraintMappingContext, org.hibernate.validator.cfg.context.ParameterConstraintMappingContext, org.hibernate.validator.cfg.context.PropertyConstraintMappingContext, org.hibernate.validator.cfg.context.ReturnValueConstraintMappingContext, org.hibernate.validator.cfg.context.TypeConstraintMappingContext

Facet of a constraint mapping creational context which allows to configure how existing annotation should be treated.
Author
Gunnar Morling

Method Summary

Modifier and TypeMethod and Description
public C

Returns:

This context for method chaining.
ignoreAnnotations
(boolean
Whether to ignore annotation-based constraints or not.
ignoreAnnotations
)

Specifies whether annotations at the given element should be ignored or not, overriding any setting given for parent elements.

Method Detail

ignoreAnnotationsback to summary
public C ignoreAnnotations(boolean ignoreAnnotations)

Specifies whether annotations at the given element should be ignored or not, overriding any setting given for parent elements. E.g. the setting given for a method parameter overrides the setting given for the method declaring that parameter.

Parameters
ignoreAnnotations:boolean

Whether to ignore annotation-based constraints or not.

Returns:C

This context for method chaining.