OpenTAP 9.24
API Reference
Public Member Functions | Properties | List of all members
OpenTap.ValidationRule Class Reference

Validates settings at runtime. A validation rule is attached to an object of type ValidatingObject and is used to validate the property value of that object. Also see ValidatingObject.Rules More...

Inheritance diagram for OpenTap.ValidationRule:
OpenTap.DelegateValidationRule

Public Member Functions

 ValidationRule (IsValidDelegateDefinition isValid, string errorMessage, string propertyName)
 

Properties

string PropertyName [getset]
 Name of the property affected by this rule.
 
virtual string ErrorMessage [getset]
 Error message to use if the property does not follow the rule.

 
IsValidDelegateDefinition IsValid [getset]
 Rule function following the signature () -> bool.

 

Detailed Description

Validates settings at runtime. A validation rule is attached to an object of type ValidatingObject and is used to validate the property value of that object. Also see ValidatingObject.Rules

Constructor & Destructor Documentation

◆ ValidationRule()

OpenTap.ValidationRule.ValidationRule ( IsValidDelegateDefinition  isValid,
string  errorMessage,
string  propertyName 
)
inline

Parameters
isValidProperty IsValid
errorMessageProperty ErrorMessage-
propertyNameProperty PropertyName

OpenTAP 9.24 API built Tue Apr 30 2024 13:44:42