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
ACascadablebacked by a property of a Java bean.- Author:
- Gunnar Morling, Marko Bekhta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractPropertyCascadable.AbstractBuilder<T extends Property>-
Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.facets.Cascadable
Cascadable.Builder
-
-
Method Summary
All Methods Instance Methods Concrete 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.ObjectgetValue(Object parent)Returns the value of this cacadable from the given parent.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.validator.internal.metadata.facets.Cascadable
getConstraintLocationKind
-
-
-
-
Method Detail
-
getCascadableType
public Type getCascadableType()
Description copied from interface:CascadableReturns the data type of this cascadable, e.g. the type of a bean property or the return type of a method.- Specified by:
getCascadableTypein interfaceCascadable- Returns:
- This cascadable type.
-
getValue
public Object getValue(Object parent)
Description copied from interface:CascadableReturns the value of this cacadable from the given parent.- Specified by:
getValuein interfaceCascadable
-
appendTo
public void appendTo(PathImpl path)
Description copied from interface:CascadableAppends this cascadable element to the given path.- Specified by:
appendToin interfaceCascadable
-
getCascadingMetaData
public CascadingMetaData getCascadingMetaData()
Description copied from interface:CascadableReturns cascading metadata of this cascadable element. Also contains the cascading metadata of the potential container element types.- Specified by:
getCascadingMetaDatain interfaceCascadable
-
-