Validator0: Validator0

Description Usage Arguments Format Details Value Author(s) See Also

Description

Validator0 Abstract class for the field validation classes. Defines the interface for field validation, and provides methods for logging and reporting validation errors.

Usage

1

Arguments

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

Format

An object of class R6ClassGenerator of length 24.

Details

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:

Value

A logical, TRUE if validation criteria are met, FALSE, otherwise.

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Validation Classes: Authorizer, ValidatorClass, ValidatorDate, ValidatorExists, ValidatorLogical, ValidatorName, ValidatorNoSpaces, ValidatorNotEmpty, ValidatorNumeric, ValidatorPath, ValidatorString, ValidatorUrl, Validator


j2scode/NLPStudio documentation built on May 7, 2019, 8:58 p.m.