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
ConstructorsConstructorDescriptionBeanDescriptorImpl(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 PropertyDescriptorgetConstraintsForProperty(String propertyName) final booleantoString()Methods inherited from class org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
findConstraints, getConstraintDescriptors, getElementClass, hasConstraintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
isBeanConstrainedin interfaceBeanDescriptor
-
getConstraintsForProperty
- Specified by:
getConstraintsForPropertyin interfaceBeanDescriptor
-
getConstrainedProperties
- Specified by:
getConstrainedPropertiesin interfaceBeanDescriptor
-
getConstraintsForConstructor
- Specified by:
getConstraintsForConstructorin interfaceBeanDescriptor
-
getConstrainedConstructors
- Specified by:
getConstrainedConstructorsin interfaceBeanDescriptor
-
getConstrainedMethods
public Set<MethodDescriptor> getConstrainedMethods(MethodType methodType, MethodType... methodTypes) - Specified by:
getConstrainedMethodsin interfaceBeanDescriptor
-
getConstraintsForMethod
- Specified by:
getConstraintsForMethodin interfaceBeanDescriptor
-
toString
-