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

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

Known Direct Subinterfaces
org.hibernate.validator.cfg.context.ContainerElementConstraintMappingContext, org.hibernate.validator.cfg.context.ParameterConstraintMappingContext, org.hibernate.validator.cfg.context.PropertyConstraintMappingContext, org.hibernate.validator.cfg.context.ReturnValueConstraintMappingContext
Known Direct Implementers
org.hibernate.validator.internal.cfg.context.CascadableConstraintMappingContextImplBase

Facet of a constraint mapping creational context which allows to mark the underlying element as to be validated in a cascaded way.
Authors
Gunnar Morling, Kevin Pollet <[email protected]> (C) 2011 SERLI

Method Summary

Modifier and TypeMethod and Description
public GroupConversionTargetContext<C>

Returns:

a creational context allow to set the target group of the conversion
convertGroup
(Class<?>
the source group of the conversion to be configured
from
)

Adds a group conversion for this cascadable element.

public C

Returns:

The current creational context following the method chaining pattern.
valid
()

Marks the current element (property, parameter etc.) as cascadable.

Method Detail

convertGroupback to summary
public GroupConversionTargetContext<C> convertGroup(Class<?> from)

Adds a group conversion for this cascadable element. Several conversions may be configured for one element.

Parameters
from:Class<?>

the source group of the conversion to be configured

Returns:GroupConversionTargetContext<C>

a creational context allow to set the target group of the conversion

validback to summary
public C valid()

Marks the current element (property, parameter etc.) as cascadable.

Returns:C

The current creational context following the method chaining pattern.