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 Summary
Modifier and TypeMethodDescriptionReturns the cascaded elements of this validatable, e.g.boolean
Returnstrue
if this validatable has at least one cascadable element,false
otherwise.
-
Method Details
-
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()Returnstrue
if this validatable has at least one cascadable element,false
otherwise.
-