Burgerlib Python
|
These classes are used in conjunction with a python class definition to create class attributes that will throw an exception if invalid data was stored. It allows for ensuring that data stored in these attributes are of only the type desired.
burger.validators.BooleanProperty
burger.validators.IntegerProperty
burger.validators.StringProperty
burger.validators.StringListProperty
burger.validators.EnumProperty
burger.validators.NoneProperty
They are implemented as class immutable attributes with a member variable definition. It is preferred to use an underscore as the first character of the attribute to denote it is a hidden variable.