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
An aggregated view of the constraint related meta data for a single method
parameter.
- Author:
- Gunnar Morling, Hardy Ferentschik
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends this cascadable element to the given path.asDescriptor
(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) Returns this meta data object's corresponding representation in the descriptor model.Returns the data type of this cascadable, e.g.Returns cascading metadata of this cascadable element.Returns the constraint location kind of the cascadable.int
getIndex()
getKind()
Returns thekind
of this meta data object.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 Details
-
getIndex
public int getIndex() -
getConstraintLocationKind
Description copied from interface:Cascadable
Returns the constraint location kind of the cascadable.- Specified by:
getConstraintLocationKind
in interfaceCascadable
- Returns:
- Returns the constraint location kind of the cascadable.
-
asDescriptor
public ParameterDescriptor asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) Description copied from interface:ConstraintMetaData
Returns this meta data object's corresponding representation in the descriptor model.- Specified by:
asDescriptor
in 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
Description copied from interface:Cascadable
Returns the value of this cacadable from the given parent.- Specified by:
getValue
in interfaceCascadable
-
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 interfaceCascadable
- Returns:
- This cascadable type.
-
appendTo
Description copied from interface:Cascadable
Appends this cascadable element to the given path.- Specified by:
appendTo
in interfaceCascadable
-
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 interfaceCascadable
-
getKind
Description copied from interface:ConstraintMetaData
Returns thekind
of this meta data object.- Specified by:
getKind
in interfaceConstraintMetaData
- Returns:
- The
kind
of this meta data object.
-