Class ParameterMetaData
- java.lang.Object
-
- org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
-
- org.hibernate.validator.internal.metadata.aggregated.ParameterMetaData
-
- All Implemented Interfaces:
Iterable<MetaConstraint<?>>,ConstraintMetaData,Cascadable
public class ParameterMetaData extends AbstractConstraintMetaData implements Cascadable
An aggregated view of the constraint related meta data for a single method parameter.- Author:
- Gunnar Morling, Hardy Ferentschik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameterMetaData.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.ParameterDescriptorasDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)Returns this meta data object's corresponding representation in the descriptor model.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.intgetIndex()ElementKindgetKind()Returns thekindof this meta data object.ObjectgetValue(Object parent)Returns the value of this cacadable from the given parent.-
Methods inherited from class org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
asContainerElementTypeDescriptors, asDescriptors, equals, getAllConstraints, getContainerElementsConstraints, getDirectConstraints, getName, getType, hashCode, isCascading, isConstrained, iterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
getConstraintLocationKind
public ConstraintLocation.ConstraintLocationKind getConstraintLocationKind()
Description copied from interface:CascadableReturns the constraint location kind of the cascadable.- Specified by:
getConstraintLocationKindin interfaceCascadable- Returns:
- Returns the constraint location kind of the cascadable.
-
asDescriptor
public ParameterDescriptor asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
Description copied from interface:ConstraintMetaDataReturns this meta data object's corresponding representation in the descriptor model.- Specified by:
asDescriptorin interfaceConstraintMetaData- Parameters:
defaultGroupSequenceRedefined- Whether the bean hosting the represented element has a redefined default group sequence or not.defaultGroupSequence- The default group sequence of the bean hosting the represented element.- Returns:
- This meta data object's corresponding descriptor model
representation. Implementations should return a specific sub type
of
ElementDescriptor.
-
getValue
public Object getValue(Object parent)
Description copied from interface:CascadableReturns the value of this cacadable from the given parent.- Specified by:
getValuein interfaceCascadable
-
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.
-
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
-
getKind
public ElementKind getKind()
Description copied from interface:ConstraintMetaDataReturns thekindof this meta data object.- Specified by:
getKindin interfaceConstraintMetaData- Returns:
- The
kindof this meta data object.
-
-