Package org.openxava.validators
Class NotEmptyStringValidator
- java.lang.Object
-
- org.openxava.validators.NotEmptyStringValidator
-
- All Implemented Interfaces:
java.io.Serializable
,IPropertyValidator
,IWithMessage
public class NotEmptyStringValidator extends java.lang.Object implements IPropertyValidator, IWithMessage
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotEmptyStringValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setMessage(java.lang.String message)
void
validate(Messages errors, java.lang.Object object, java.lang.String propertyName, java.lang.String modelName)
Validate.
-
-
-
Method Detail
-
validate
public void validate(Messages errors, java.lang.Object object, java.lang.String propertyName, java.lang.String modelName)
Description copied from interface:IPropertyValidator
Validate.The validation errors are added to an object of type
Messages
.- Specified by:
validate
in interfaceIPropertyValidator
- Parameters:
errors
- Not null. Ids list to read in the resources fileobject
- Value to validate. It can be nullpropertyName
- Property id in the resources filemodelName
- Object id in the resources file.
-
setMessage
public void setMessage(java.lang.String message)
- Specified by:
setMessage
in interfaceIWithMessage
-
-