Skip to contents

Abstract validation rule

Abstract validation rule

Methods


Method new()

Initializes an abstract validation rule

Usage

vrule_abstract$new(..., type = c("ERROR", "WARNING"))

Arguments

...

args

type

the type of rule either ERROR or WARNING


Method validate()

Abstract method to validate data

Usage

vrule_abstract$validate(value, ...)

Arguments

value

value

...

any other args

Returns

a validation report, object of class vrule_report


Method getType()

Get validation type

Usage

vrule_abstract$getType()

Returns

ERROR or WARNING


Method getCategory()

Get validation rule category

Usage

vrule_abstract$getCategory()

Returns

the validation rule category


Method getName()

Get validation rule name

Usage

vrule_abstract$getName()

Returns

the validation rule name


Method clone()

The objects of this class are cloneable with this method.

Usage

vrule_abstract$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.