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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends this cascadable element to the given path.Returns the data type of this cascadable, e.g. the type of a bean property or the return type of a method.Returns cascading metadata of this cascadable element.Returns the constraint location kind of the cascadable.Returns the value of this cacadable from the given parent.
-
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
Returns the value of this cacadable from the given parent. -
appendTo
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.
-