Class NotEmptyStringValidator

×News: OpenXava 7.7 released - March 9 · Read more
java.lang.Object
org.openxava.validators.NotEmptyStringValidator
All Implemented Interfaces:
Serializable, IPropertyValidator, IWithMessage

public class NotEmptyStringValidator extends Object implements IPropertyValidator, IWithMessage
Author:
Javier Paniza
See Also:
  • Constructor Details

    • NotEmptyStringValidator

      public NotEmptyStringValidator()
  • Method Details

    • validate

      public void validate(Messages errors, Object object, String propertyName, String modelName)
      Description copied from interface: IPropertyValidator
      Validate.

      The validation errors are added to an object of type Messages.

      Specified by:
      validate in interface IPropertyValidator
      Parameters:
      errors - Not null. Ids list to read in the resources file
      object - Value to validate. It can be null
      propertyName - Property id in the resources file
      modelName - Object id in the resources file.
    • setMessage

      public void setMessage(String message)
      Specified by:
      setMessage in interface IWithMessage