Interface Validatable

  • All Known Subinterfaces:
    BeanMetaData<T>
    All Known Implementing Classes:
    BeanMetaDataImpl, ReturnValueMetaData, ValidatableParametersMetaData

    public interface Validatable
    Provides a unified view on validatable elements of all kinds, be it Java beans, the arguments passed to a method or the value returned from a method. Allows a unified handling of these elements in the validation routine.
    Author:
    Gunnar Morling
    • Method Detail

      • getCascadables

        Iterable<Cascadable> getCascadables()
        Returns the cascaded elements of this validatable, e.g. the properties of a bean or the parameters of a method annotated with @Valid.
        Returns:
        The cascaded elements of this validatable.
      • hasCascadables

        boolean hasCascadables()
        Returns true if this validatable has at least one cascadable element, false otherwise.