public interface ValidationService
Modifier and Type | Method and Description |
---|---|
ModelConstraint |
getConstraintsForClass(Class<?> clazz)
Find validation constraints for a model class and return their representation
|
ModelConstraint |
getConstraintsForClass(Class<?> clazz,
Locale locale)
Find validation constraints for a model class and return their representation.
|
ModelConstraint |
getConstraintsForClassName(String canonicalClassName)
Find validation constraints for a model class name and return their representation
|
ModelConstraint |
getConstraintsForClassName(String canonicalClassName,
Locale locale)
Find validation constraints for a model class name and return their representation.
|
ModelConstraint getConstraintsForClassName(String canonicalClassName) throws ClassNotFoundException
canonicalClassName
- complete class name of the model to findModelConstraint
wrapper containing all validation
constraints retrieved for the given canonicalClassNameClassNotFoundException
- if canonicalClassName does not match any classModelConstraint getConstraintsForClassName(String canonicalClassName, Locale locale) throws ClassNotFoundException
canonicalClassName
- complete class name of the model to findlocale
- Locale
object used to resolve localized messages, if anyModelConstraint
wrapper containing all validation
constraints retrieved for the given canonicalClassNameClassNotFoundException
- if canonicalClassName does not match any classModelConstraint getConstraintsForClass(Class<?> clazz)
clazz
- class of the model to findModelConstraint
wrapper containing all validation
constraints retrieved for the given clazzModelConstraint getConstraintsForClass(Class<?> clazz, Locale locale)
clazz
- class of the model to findlocale
- Locale
object used to resolve localized messages, if anyModelConstraint
wrapper containing all validation
constraints retrieved for the given clazzCopyright © 2009–2014. All rights reserved.