firecrown.descriptors.TypeString

class firecrown.descriptors.TypeString(minsize=None, maxsize=None, predicate=None)[source]

Bases: Validator

String attribute descriptor.

Public Methods:

__init__([minsize, maxsize, predicate])

validate(value)

Abstract method to perform whatever validation is required.

Inherited from Validator

__set_name__(owner, name)

Create the name of the private instance variable that will hold the value.

__get__(obj[, objtype])

Accessor method, which reads controlled value.

__set__(obj, value)

Setter for the validated variable.

validate(value)

Abstract method to perform whatever validation is required.


validate(value)[source]

Abstract method to perform whatever validation is required.