com.jivesoftware.profiles.validator
Interface ProfileFieldValidator
- All Known Implementing Classes:
- DateValidator, DecimalValidator, EmailValidator, LengthValidator, NonValidatingValidator, NumberValidator, RangeValidator, RegexValidator, URLValidator
public interface ProfileFieldValidator
Profile field validator validate a profile field value as entered or selected by the end
user.
- Since:
- 2.0
Method Summary |
java.lang.String |
validate(java.lang.String value,
User user)
Performs field validation on user supplied input. |
validate
java.lang.String validate(java.lang.String value,
User user)
- Performs field validation on user supplied input. Returns null if validation succeeds or an
error string if validation fails.
- Parameters:
value
- the user supplied value. If no value has been provided by the user then the
value should be null.user
- the user supplying the value, or null if anonymous.
- Returns:
- null if validation succeeds or an error string if validation fails.
Copyright © 1999-2006 Jive Software.