Interface Cascadable
-
- All Known Implementing Classes:
AbstractPropertyCascadable,FieldCascadable,GetterCascadable,ParameterMetaData,ReturnValueMetaData
public interface CascadableProvides 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 Modifier and Type Interface Description static interfaceCascadable.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendTo(PathImpl path)Appends this cascadable element to the given path.TypegetCascadableType()Returns the data type of this cascadable, e.g.CascadingMetaDatagetCascadingMetaData()Returns cascading metadata of this cascadable element.ConstraintLocation.ConstraintLocationKindgetConstraintLocationKind()Returns the constraint location kind of the cascadable.ObjectgetValue(Object parent)Returns the value of this cacadable from the given parent.
-
-
-
Method Detail
-
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.
-
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.
-
-