| java.lang.Object nl.knowlogy.validation.ValidationEngine
ValidationEngine | public class ValidationEngine (Code) | | The ValidationEngine class is responsible for validating
objects.
author: Robert Hofstra, Knowlogy |
Inner Class :public interface ValidatorSupplier | |
Method Summary | |
protected ClassMetadata | doGetClassMetaData(Class clazz) | protected ClassValidator | doGetValidator(Class clazz) | protected ClassValidator | doGetValidator(Object object) | public synchronized void | doRegisterValidator(ClassValidator classValidator) | protected synchronized void | doSetValidatorSupplier(ValidatorSupplier validatorSupplier) | protected void | doValidate(Object object, Messages messages) | protected void | doValidate(Object object) | protected void | doValidateGroup(Object object, String groupName, Messages messages) | protected void | doValidateProperty(Class clazz, String propertyName, Object value, Messages messages) | public static ClassMetadata | getClassMetaData(Class clazz) | public static ClassValidator | getClassValidator(Class clazz) | public static ValidationEngine | getInstance() | public static void | registerValidator(ClassValidator classValidator) | public static void | setValidatorSupplier(ValidatorSupplier validatorSupplier) | public static void | validate(Object object, Messages messages) | public static void | validate(Object object) | public static void | validateGroup(Object object, String groupName, Messages messages) | public static void | validateProperty(Class clazz, String propertyName, Object value, Messages messages) Validates if a value is valid for the property of a javabean from clazz. |
ValidationEngine | protected ValidationEngine()(Code) | | |
doRegisterValidator | public synchronized void doRegisterValidator(ClassValidator classValidator)(Code) | | |
doSetValidatorSupplier | protected synchronized void doSetValidatorSupplier(ValidatorSupplier validatorSupplier)(Code) | | |
setValidatorSupplier | public static void setValidatorSupplier(ValidatorSupplier validatorSupplier)(Code) | | |
validateProperty | public static void validateProperty(Class clazz, String propertyName, Object value, Messages messages)(Code) | | Validates if a value is valid for the property of a javabean from clazz.
This is for validation a value without setting it actualy.
Parameters: clazz - of the javabean for which the value must be validated Parameters: propertyName - name of the property Parameters: value - value Parameters: messages - a messages container to which properties are added. |
|
|