def validate(self, obj, name, value):
        return self._validator.validate(obj, name, value)
Use the Enthought trait's validate.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/datatypes/str.py/Str.validate