Class BeanDescriptorImpl
java.lang.Object
org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
org.hibernate.validator.internal.metadata.descriptor.BeanDescriptorImpl
- All Implemented Interfaces:
BeanDescriptor
,ElementDescriptor
,Serializable
Describes a validated bean.
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
-
Constructor Summary
ConstructorDescriptionBeanDescriptorImpl
(Type beanClass, Set<ConstraintDescriptorImpl<?>> classLevelConstraints, Map<String, PropertyDescriptor> constrainedProperties, Map<Signature, ExecutableDescriptorImpl> constrainedMethods, Map<Signature, ConstructorDescriptor> constrainedConstructors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) -
Method Summary
Modifier and TypeMethodDescriptiongetConstrainedMethods
(MethodType methodType, MethodType... methodTypes) final Set<PropertyDescriptor>
getConstraintsForConstructor
(Class<?>... parameterTypes) getConstraintsForMethod
(String methodName, Class<?>... parameterTypes) final PropertyDescriptor
getConstraintsForProperty
(String propertyName) final boolean
toString()
Methods inherited from class org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
-
Constructor Details
-
BeanDescriptorImpl
public BeanDescriptorImpl(Type beanClass, Set<ConstraintDescriptorImpl<?>> classLevelConstraints, Map<String, PropertyDescriptor> constrainedProperties, Map<Signature, ExecutableDescriptorImpl> constrainedMethods, Map<Signature, ConstructorDescriptor> constrainedConstructors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
-
-
Method Details
-
isBeanConstrained
public final boolean isBeanConstrained()- Specified by:
isBeanConstrained
in interfaceBeanDescriptor
-
getConstraintsForProperty
- Specified by:
getConstraintsForProperty
in interfaceBeanDescriptor
-
getConstrainedProperties
- Specified by:
getConstrainedProperties
in interfaceBeanDescriptor
-
getConstraintsForConstructor
- Specified by:
getConstraintsForConstructor
in interfaceBeanDescriptor
-
getConstrainedConstructors
- Specified by:
getConstrainedConstructors
in interfaceBeanDescriptor
-
getConstrainedMethods
public Set<MethodDescriptor> getConstrainedMethods(MethodType methodType, MethodType... methodTypes) - Specified by:
getConstrainedMethods
in interfaceBeanDescriptor
-
getConstraintsForMethod
- Specified by:
getConstraintsForMethod
in interfaceBeanDescriptor
-
toString
-