nl.knowlogy.validation.validators
Class CustomPropertyValidator
java.lang.Object
nl.knowlogy.validation.validators.BasePropertyValidator
nl.knowlogy.validation.validators.CustomPropertyValidator
- All Implemented Interfaces:
- PropertyValidation
public class CustomPropertyValidator
- extends BasePropertyValidator
- Author:
- Robert Hofstra, Knowlogy
CustomPropertyValidator
public CustomPropertyValidator(ClassValidator classValidator,
String propertyName)
CustomPropertyValidator
public CustomPropertyValidator(ClassValidator classValidator,
String propertyName,
String customValidatorName)
CustomPropertyValidator
public CustomPropertyValidator(ClassValidator classValidator,
String propertyName,
String customValidatorName,
String errorCode)
getCustomValidatorName
public String getCustomValidatorName()
- Returns:
- Returns the customValidatorName.
setCustomValidatorName
public void setCustomValidatorName(String customValidatorName)
- Parameters:
customValidatorName
- The customValidatorName to set.
setCustomValidator
public void setCustomValidator(CustomValidator customValidator)
getDefaultErrorCode
public String getDefaultErrorCode()
- Specified by:
getDefaultErrorCode
in class BasePropertyValidator
doValidatePropertyValue
public void doValidatePropertyValue(Object toValidate,
Object propertyValue,
Messages errors)
- Description copied from interface:
PropertyValidation
- Validates the property value of object obj. In case of any validation
errors, an they are added to the errors object.
errors
- errors object to which any validation errors are added.
toString
public String toString()
- Overrides:
toString
in class BasePropertyValidator
Copyright © 2007. All Rights Reserved.