public class ConstraintDescriptions extends Object
Constructor and Description |
---|
ConstraintDescriptions(Class<?> clazz)
Create a new
ConstraintDescriptions for the given clazz . |
ConstraintDescriptions(Class<?> clazz,
ConstraintDescriptionResolver descriptionResolver)
Create a new
ConstraintDescriptions for the given clazz . |
ConstraintDescriptions(Class<?> clazz,
ConstraintResolver constraintResolver)
Create a new
ConstraintDescriptions for the given clazz . |
ConstraintDescriptions(Class<?> clazz,
ConstraintResolver constraintResolver,
ConstraintDescriptionResolver descriptionResolver)
Create a new
ConstraintDescriptions for the given clazz . |
Modifier and Type | Method and Description |
---|---|
List<String> |
descriptionsForProperty(String property)
Returns a list of the descriptions for the constraints on the given property
|
public ConstraintDescriptions(Class<?> clazz)
ConstraintDescriptions
for the given clazz
.
Constraints will be resolved using a ValidatorConstraintResolver
and
descriptions will be resolved using a
ResourceBundleConstraintDescriptionResolver
.clazz
- the classpublic ConstraintDescriptions(Class<?> clazz, ConstraintResolver constraintResolver)
ConstraintDescriptions
for the given clazz
.
Constraints will be resolved using the given constraintResolver
and
descriptions will be resolved using a
ResourceBundleConstraintDescriptionResolver
.clazz
- the classconstraintResolver
- the constraint resolverpublic ConstraintDescriptions(Class<?> clazz, ConstraintDescriptionResolver descriptionResolver)
ConstraintDescriptions
for the given clazz
.
Constraints will be resolved using a ValidatorConstraintResolver
and
descriptions will be resolved using the given descriptionResolver
.clazz
- the classdescriptionResolver
- the description resolverpublic ConstraintDescriptions(Class<?> clazz, ConstraintResolver constraintResolver, ConstraintDescriptionResolver descriptionResolver)
ConstraintDescriptions
for the given clazz
.
Constraints will be resolved using the given constraintResolver
and
descriptions will be resolved using the given descriptionResolver
.clazz
- the classconstraintResolver
- the constraint resolverdescriptionResolver
- the description resolver