Class PositiveValidator

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PositiveValidator

        public PositiveValidator()
    • 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 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​(java.lang.String message)
        Specified by:
        setMessage in interface IWithMessage