Class AbstractPropertyCascadable<T extends Property>

java.lang.Object
org.hibernate.validator.internal.metadata.aggregated.AbstractPropertyCascadable<T>
All Implemented Interfaces:
Cascadable
Direct Known Subclasses:
FieldCascadable, GetterCascadable

public abstract class AbstractPropertyCascadable<T extends Property> extends Object implements Cascadable
A Cascadable backed by a property of a Java bean.
Author:
Gunnar Morling, Marko Bekhta
  • Method Details

    • getCascadableType

      public Type getCascadableType()
      Description copied from interface: Cascadable
      Returns the data type of this cascadable, e.g. the type of a bean property or the return type of a method.
      Specified by:
      getCascadableType in interface Cascadable
      Returns:
      This cascadable type.
    • getValue

      public Object getValue(Object parent)
      Description copied from interface: Cascadable
      Returns the value of this cacadable from the given parent.
      Specified by:
      getValue in interface Cascadable
    • appendTo

      public void appendTo(PathImpl path)
      Description copied from interface: Cascadable
      Appends this cascadable element to the given path.
      Specified by:
      appendTo in interface Cascadable
    • getCascadingMetaData

      public CascadingMetaData getCascadingMetaData()
      Description copied from interface: Cascadable
      Returns cascading metadata of this cascadable element. Also contains the cascading metadata of the potential container element types.
      Specified by:
      getCascadingMetaData in interface Cascadable