Class AbstractStringValidator

    • Constructor Detail

      • AbstractStringValidator

        public AbstractStringValidator​(String errorMessage)
        Deprecated.
        Constructs a validator for strings.

        Null and empty string values are always accepted. To reject empty values, set the field being validated as required.

        Parameters:
        errorMessage - the message to be included in an Validator.InvalidValueException (with "{0}" replaced by the value that failed validation).