Interface Validatable
-
- All Known Subinterfaces:
BeanMetaData<T>
- All Known Implementing Classes:
BeanMetaDataImpl,ReturnValueMetaData,ValidatableParametersMetaData
public interface ValidatableProvides 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<Cascadable>getCascadables()Returns the cascaded elements of this validatable, e.g.booleanhasCascadables()Returnstrueif this validatable has at least one cascadable element,falseotherwise.
-
-
-
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()
Returnstrueif this validatable has at least one cascadable element,falseotherwise.
-
-