QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Base class for field domains. More...
#include <qgsfielddomain.h>
Public Member Functions | |
QgsFieldDomain (const QString &name, const QString &description, QVariant::Type fieldType) | |
Constructor for QgsFieldDomain, with the specified name, description and fieldType. More... | |
virtual | ~QgsFieldDomain () |
virtual QgsFieldDomain * | clone () const =0 |
Clones the field domain. More... | |
QString | description () const |
Returns the description of the field domain. More... | |
QVariant::Type | fieldType () const |
Returns the associated field type. More... | |
Qgis::FieldDomainMergePolicy | mergePolicy () const |
Returns the merge policy. More... | |
QString | name () const |
Returns the name of the field domain. More... | |
void | setDescription (const QString &description) |
Sets the description of the field domain. More... | |
void | setFieldType (QVariant::Type type) |
Sets the associated field type. More... | |
void | setMergePolicy (Qgis::FieldDomainMergePolicy policy) |
Sets the merge policy. More... | |
void | setName (const QString &name) |
Sets the name of the field domain. More... | |
void | setSplitPolicy (Qgis::FieldDomainSplitPolicy policy) |
Sets the split policy. More... | |
Qgis::FieldDomainSplitPolicy | splitPolicy () const |
Returns the split policy. More... | |
virtual Qgis::FieldDomainType | type () const =0 |
Returns the type of field domain. More... | |
virtual QString | typeName () const =0 |
Returns a translated name of the field domain type. More... | |
Protected Attributes | |
QString | mDescription |
QVariant::Type | mFieldType = QVariant::Type::String |
Qgis::FieldDomainMergePolicy | mMergePolicy = Qgis::FieldDomainMergePolicy::DefaultValue |
QString | mName |
Qgis::FieldDomainSplitPolicy | mSplitPolicy = Qgis::FieldDomainSplitPolicy::DefaultValue |
Base class for field domains.
A field domain is a set of constraints that apply to one or several fields.
Definition at line 33 of file qgsfielddomain.h.
QgsFieldDomain::QgsFieldDomain | ( | const QString & | name, |
const QString & | description, | ||
QVariant::Type | fieldType | ||
) |
Constructor for QgsFieldDomain, with the specified name, description and fieldType.
Definition at line 23 of file qgsfielddomain.cpp.
|
virtualdefault |
|
pure virtual |
Clones the field domain.
Implemented in QgsCodedFieldDomain, QgsRangeFieldDomain, and QgsGlobFieldDomain.
|
inline |
Returns the description of the field domain.
Definition at line 102 of file qgsfielddomain.h.
|
inline |
Returns the associated field type.
Definition at line 116 of file qgsfielddomain.h.
|
inline |
|
inline |
Returns the name of the field domain.
Definition at line 88 of file qgsfielddomain.h.
|
inline |
Sets the description of the field domain.
Definition at line 109 of file qgsfielddomain.h.
|
inline |
Sets the associated field type.
Definition at line 123 of file qgsfielddomain.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Returns the type of field domain.
Implemented in QgsCodedFieldDomain, QgsRangeFieldDomain, and QgsGlobFieldDomain.
|
pure virtual |
Returns a translated name of the field domain type.
Implemented in QgsCodedFieldDomain, QgsRangeFieldDomain, and QgsGlobFieldDomain.
|
protected |
Definition at line 156 of file qgsfielddomain.h.
|
protected |
Definition at line 158 of file qgsfielddomain.h.
|
protected |
Definition at line 160 of file qgsfielddomain.h.
|
protected |
Definition at line 155 of file qgsfielddomain.h.
|
protected |
Definition at line 159 of file qgsfielddomain.h.