Interface Cascadable<C extends Cascadable<C>>

All Known Subinterfaces:
ContainerElementConstraintMappingContext, ParameterConstraintMappingContext, PropertyConstraintMappingContext, ReturnValueConstraintMappingContext
All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl

public interface Cascadable<C extends Cascadable<C>>
Facet of a constraint mapping creational context which allows to mark the underlying element as to be validated in a cascaded way.
Author:
Gunnar Morling, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
  • Method Summary

    Modifier and Type
    Method
    Description
    Adds a group conversion for this cascadable element.
    Marks the current element (property, parameter etc.) as cascadable.
  • Method Details

    • valid

      C valid()
      Marks the current element (property, parameter etc.) as cascadable.
      Returns:
      The current creational context following the method chaining pattern.
    • convertGroup

      GroupConversionTargetContext<C> convertGroup(Class<?> from)
      Adds a group conversion for this cascadable element. Several conversions may be configured for one element.
      Parameters:
      from - the source group of the conversion to be configured
      Returns:
      a creational context allow to set the target group of the conversion