Param Type
Validation functions to perform on any type implementing the `IParam` interface.
Static members
Static member | Description |
Full Usage:
Param.TermIsEqualTo(expectedTerm) (param)
Parameters:
CvTerm
-
The expected term to validate against
param : 'a
-
The param to validate
|
Validates if the term of the given Param is equal to the expected term.
|
Full Usage:
Param.ValueIsEqualTo(targetValue) (param)
Parameters:
IConvertible
param : 'a
-
The param to validate
|
Validates if the value of the given Param is equal to the expected value.
|
Full Usage:
Param.ValueIsNotEmpty(param)
Parameters:
'a
-
The param to validate
|
Validates that the value of the given Param is not empty (meaning it is not an empty string: "").
|
Full Usage:
Param.ValueMatchesPattern(pattern) (param)
Parameters:
string
-
The regex pattern that the value should match
param : 'a
-
The param to validate
|
Validates if the value of the given Param matches a regex pattern.
|
Full Usage:
Param.ValueMatchesRegex(regex) (param)
Parameters:
Regex
param : 'a
-
The param to validate
|
Validates if the value of the given Param matches a regex.
|
Full Usage:
Param.ValueSatisfiesPredicate(predicate) (param)
Parameters:
IConvertible -> bool
-
The predicate that the Param should satisfy
param : 'a
-
The param to validate
|
Validates if the value of the given Param satisfies a predicate (meaning a function that for a given Param returns either true or false)
|