Inherits from
- TraitHandler: enthought.traits.trait_handlers.TraitHandler
Attributes
Inherited from base classes
Method summary
- __getstate__(self)
- __init__(self, minlen = 0, maxlen = sys.maxint, regex = '')
- __setstate__(self, state)
- info(self)
- validate(self, object, name, value)
- validate_len(self, object, name, value)
- validate_regex(self, object, name, value)
- validate_str(self, object, name, value)
Inherited from base classes
- arg_error(self, method, arg_num, object, name, value)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_editor(self, trait = None)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
Methods
- __getstate__(self)
- __init__(self, minlen = 0, maxlen = sys.maxint, regex = '')
Creates a TraitString handler.
Parameters
- minlen : integer
- The minimum length allowed for the string
- maxlen : integer
- The maximum length allowed for the string
- regex : string
- A Python regular expression that the string must match
- __setstate__(self, state)
- info(self)
- validate(self, object, name, value)
- validate_len(self, object, name, value)
- validate_regex(self, object, name, value)
- validate_str(self, object, name, value)