Data Validator
The DataValidator class is an abstract base that validators can extend from. It provides a basic interface for validating and transforming data.
Public API
Network Sync
This object is not network synced.
Methods
bool
_PostValidate(
string
data
)
Returns true if the provided data passes the validation check. This check happens on the data returned by the transform method.
This method returns true by default, so it does not need to be implemented if post-validation is not needed.
bool
_PreValidate(
string
data
)
Returns true if the provided data passes the validation check. This check happens before the transform is called.
This method returns true by default, so it does not need to be implemented if pre-validation is not needed.
string
_Transform(
string
data
)
Returns a transformed version of the original data.
This method returns the data string by default, so it does not need to be implemented if transformation is not needed.