nl.knowlogy.validation
Interface PropertyValidation

All Known Implementing Classes:
AllowedValuesValidator, BasePropertyValidator, CustomPropertyValidator, IsNotBlankValidator, IsRequiredValidator, IsValidValidator, MaxLengthValidator, MaxSizeValidator, MinLengthValidator, MinSizeValidator, PatternValidator

public interface PropertyValidation

Interface for validation of a specific property identified with propertyName.

Author:
Robert

Method Summary
 void doValidatePropertyValue(Object object, Object propertyValue, Messages errors)
          Validates the property value of object obj.
 String getPropertyName()
          Returns the propertyName from the property which this propertyValidation is validating.
 

Method Detail

getPropertyName

String getPropertyName()
Returns the propertyName from the property which this propertyValidation is validating.

Returns:
the propertyName from the property which this propertyValidation is validating.

doValidatePropertyValue

void doValidatePropertyValue(Object object,
                             Object propertyValue,
                             Messages errors)
Validates the property value of object obj. In case of any validation errors, an they are added to the errors object.

Parameters:
value - propertyvalue to be validated.
errors - errors object to which any validation errors are added.


Copyright © 2007. All Rights Reserved.