Package org.openbravo.base.validation
Interface PropertyValidator
-
- All Known Implementing Classes:
BasePropertyValidator
,NumericPropertyValidator
,StringPropertyValidator
public interface PropertyValidator
Defines the interface for a propertyvalidator.- Author:
- mtaal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
validate(Object value)
Validate the value against constraints implemented in the validator.
-
-
-
Method Detail
-
validate
String validate(Object value)
Validate the value against constraints implemented in the validator. If the validation fails a message is returned. If validation passes then null is returned.- Parameters:
value
- the value to check- Returns:
- null if validation passes, otherwise a validation message is returned
-
-