Inherits from
- ThisClass: enthought.traits.trait_handlers.ThisClass
Attributes
Inherited from base classes
Method summary
- __init__(self, aClass, or_none = False, module = '')
- allow_none(self)
- create_default_value(self, *args, **kw)
- find_class(self)
- info(self)
- resolve_class(self, object, name, value)
- set_fast_validate(self)
- validate(self, object, name, value)
Inherited from base classes
- arg_error(self, method, arg_num, object, name, value)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- metadata(self)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
Methods
- __init__(self, aClass, or_none = False, module = '')
Creates a TraitInstance handler.
Parameters
- aClass : class or type
- A Python class, an instance of a Python class, or a Python type
- or_none: boolean
- Flag indicating whether None is accepted as a valid value (True or non-zero) or not (False or 0)
- module : module
- The module that the class belongs to
Description
If aClass is an instance, it is mapped to the class it is an instance of.
- allow_none(self)
- create_default_value(self, *args, **kw)
- find_class(self)
- info(self)
- resolve_class(self, object, name, value)
- set_fast_validate(self)
- validate(self, object, name, value)