...
If you want to write validation classes your class have to inherit from the cValidatorAbstract class. The minimum minimal feature of your class should be the implementation of the isValid method with the logic if a given value matches the validation or not.
...