Description Usage Arguments Format Details Value Author(s) See Also
Validator0
Abstract class for the field validation classes. Defines
the interface for field validation, and provides methods for logging
and reporting validation errors.
1 |
class |
Character string containing the name of the invoking class |
method |
Character string containing the name of the invoking method |
fieldName |
Character string containing the name of the field to validate |
value |
The value of the field being validated |
level |
Character string c("Error", "Warn", "Info) |
msg |
Character vector containing the message to be displayed if test fails |
expect |
Logical c(TRUE, FALSE) indicating expected outcome |
An object of class R6ClassGenerator
of length 24.
Validator0 Methods:
validate(class, method, fieldName, value, level, msg, expect)
Field level validation method overwritten by subclasses.
notify(class, method, fieldName, value, level, msg, expect)
Renders notification of field level validation.
Validator0 Parameters:
A logical, TRUE if validation criteria are met, FALSE, otherwise.
John James, jjames@datasciencesalon.org
Other Validation Classes: Authorizer
,
ValidatorClass
,
ValidatorDate
,
ValidatorExists
,
ValidatorLogical
,
ValidatorName
,
ValidatorNoSpaces
,
ValidatorNotEmpty
,
ValidatorNumeric
,
ValidatorPath
,
ValidatorString
,
ValidatorUrl
, Validator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.