Class: QgsFieldDomain¶
- class qgis.core.QgsFieldDomain¶
Bases:
sip.wrapper
Base class for field domains.
A field domain is a set of constraints that apply to one or several fields.
New in version 3.26.
QgsFieldDomain(name: str, description: str, fieldType: QVariant.Type) Constructor for
QgsFieldDomain
, with the specifiedname
,description
andfieldType
.QgsFieldDomain(
QgsFieldDomain
)Methods
Clones the field domain.
Returns the description of the field domain.
Returns the associated field type.
Returns the merge policy.
Returns the name of the field domain.
Sets the
description
of the field domain.Sets the associated field
type
.Sets the merge
policy
.Sets the
name
of the field domain.Sets the split
policy
.Returns the split policy.
Returns the type of field domain.
Returns a translated name of the field domain type.
- clone(self) QgsFieldDomain ¶
Clones the field domain.
- Return type
- description(self) str ¶
Returns the description of the field domain.
See also
- Return type
str
- fieldType(self) QVariant.Type ¶
Returns the associated field type.
See also
- Return type
QVariant.Type
- mergePolicy(self) Qgis.FieldDomainMergePolicy ¶
Returns the merge policy.
See also
- Return type
- setDescription(self, description: str)¶
Sets the
description
of the field domain.See also
- Parameters
description (str) –
- setFieldType(self, type: QVariant.Type)¶
Sets the associated field
type
.See also
- Parameters
type (QVariant.Type) –
- setMergePolicy(self, policy: Qgis.FieldDomainMergePolicy)¶
Sets the merge
policy
.See also
- Parameters
policy (Qgis.FieldDomainMergePolicy) –
- setName(self, name: str)¶
Sets the
name
of the field domain.See also
- Parameters
name (str) –
- setSplitPolicy(self, policy: Qgis.FieldDomainSplitPolicy)¶
Sets the split
policy
.See also
- Parameters
policy (Qgis.FieldDomainSplitPolicy) –
- splitPolicy(self) Qgis.FieldDomainSplitPolicy ¶
Returns the split policy.
See also
- Return type
- type(self) Qgis.FieldDomainType ¶
Returns the type of field domain.
- Return type
- typeName(self) str ¶
Returns a translated name of the field domain type.
- Return type
str