Interface Cascadable

All Known Implementing Classes:
AbstractPropertyCascadable, FieldCascadable, GetterCascadable, ParameterMetaData, ReturnValueMetaData

public interface Cascadable
Provides a unified view on cascadable elements of all kinds, be it properties of a Java bean, the arguments passed to an executable or the value returned from an executable. Allows a unified handling of these elements in the validation routine.
Author:
Gunnar Morling
  • Method Details

    • getConstraintLocationKind

      ConstraintLocation.ConstraintLocationKind getConstraintLocationKind()
      Returns the constraint location kind of the cascadable.
      Returns:
      Returns the constraint location kind of the cascadable.
    • getCascadableType

      Type getCascadableType()
      Returns the data type of this cascadable, e.g. the type of a bean property or the return type of a method.
      Returns:
      This cascadable type.
    • getValue

      Object getValue(Object parent)
      Returns the value of this cacadable from the given parent.
    • appendTo

      void appendTo(PathImpl path)
      Appends this cascadable element to the given path.
    • getCascadingMetaData

      CascadingMetaData getCascadingMetaData()
      Returns cascading metadata of this cascadable element. Also contains the cascading metadata of the potential container element types.