pydent.models.field_value_mixins.FieldTypeInterface¶
-
class
pydent.models.field_value_mixins.
FieldTypeInterface
[source]¶ Bases:
object
An interface for things that have field types (i.e.
pydent.models.OperationType
andpydent.models.SampleType
).-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
Initialize self.
field_type
(name, role)Returns a
pydent.models.FieldType
by its name and role.-
field_type
(name, role)[source]¶ Returns a
pydent.models.FieldType
by its name and role.- Parameters
name (basestring) – its name
role (basestring) – its role
- Returns
the field type or None if not found
- Return type
FieldType | None
-