Top Description Inners Methods
org.hibernate.validator.internal.metadata.facets

public Interface Cascadable

Known Direct Implementers
org.hibernate.validator.internal.metadata.aggregated.AbstractPropertyCascadable, org.hibernate.validator.internal.metadata.aggregated.ParameterMetaData, org.hibernate.validator.internal.metadata.aggregated.ReturnValueMetaData
Imports
java.lang.reflect.Type, org.hibernate.validator.internal.engine.path.PathImpl, org.hibernate.validator.internal.metadata.aggregated.CascadingMetaData, .CascadingMetaDataBuilder, org.hibernate.validator.internal.metadata.location.ConstraintLocation.ConstraintLocationKind

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 and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
appendTo(PathImpl path)

Appends this cascadable element to the given path.

public Type

Returns:

This cascadable type.
getCascadableType
()

Returns the data type of this cascadable, e.g. the type of a bean property or the return type of a method.

public CascadingMetaData
getCascadingMetaData()

Returns cascading metadata of this cascadable element.

public ConstraintLocation.ConstraintLocationKind

Returns:

Returns the constraint location kind of the cascadable.
getConstraintLocationKind
()

Returns the constraint location kind of the cascadable.

public Object
getValue(Object parent)

Returns the value of this cacadable from the given parent.

Method Detail

appendToback to summary
public void appendTo(PathImpl path)

Appends this cascadable element to the given path.

getCascadableTypeback to summary
public 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:Type

This cascadable type.

getCascadingMetaDataback to summary
public CascadingMetaData getCascadingMetaData()

Returns cascading metadata of this cascadable element. Also contains the cascading metadata of the potential container element types.

getConstraintLocationKindback to summary
public ConstraintLocation.ConstraintLocationKind getConstraintLocationKind()

Returns the constraint location kind of the cascadable.

Returns:ConstraintLocation.ConstraintLocationKind

Returns the constraint location kind of the cascadable.

getValueback to summary
public Object getValue(Object parent)

Returns the value of this cacadable from the given parent.

org.hibernate.validator.internal.metadata.facets back to summary

public Interface Cascadable.Builder

Known Direct Implementers
org.hibernate.validator.internal.metadata.aggregated.AbstractPropertyCascadable.AbstractBuilder

Method Summary

Modifier and TypeMethod and Description
public Cascadable
public void

Method Detail

buildback to summary
public Cascadable build()
mergeCascadingMetaDataback to summary
public void mergeCascadingMetaData(CascadingMetaDataBuilder cascadingMetaDataBuilder)