The list or range of appropriate values for a particular Field. More...
Header | #include <Domain.h |
Since | Esri |
Inherits | Esri |
Inherited By | Esri |
Public Functions
Domain() | |
Domain(const Esri | |
Domain( | |
virtual | ~ |
Esri | domain |
(since Esri Esri | field |
bool | is |
Q | name() const |
(since Esri bool | operator!=(const Esri |
Esri | operator=( |
Esri | operator=(const Esri |
(since Esri bool | operator==(const Esri |
Reimplemented Public Functions
virtual Q | to |
(deprecated) virtual Q | unknown |
(deprecated) virtual Q | unsupported |
Static Public Members
Esri | from |
Detailed Description
This is the base class for domains such as the CodedValueDomain and RangeDomain. Domains are important for maintaining data integrity, especially when users collect data in your app. Domains are typically created and assigned to your datasets using ArcGIS Pro, ArcGIS Online, or ArcGIS Enterprise.
If you are using a mobile geodatabase that was created in ArcGIS Pro or using Geodatabase::createAsync(const QString&, QObject*), you can create a new domain using Geodatabase::createDomainAsync(Esri::ArcGISRuntime::DomainDescription*).
Relevant samples:
- Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
Member Function Documentation
Domain::Domain()
Default constructor. Creates an empty Domain with domainType DomainType::Unknown
.
See also DomainType.
Domain::Domain(const Esri::ArcGISRuntime::Domain &other)
Copy constructor from other Domain.
[noexcept]
Domain::Domain(Esri::ArcGISRuntime::Domain &&other)
Move constructor from other Domain.
[override virtual noexcept]
Domain::~Domain ()
Destructor.
Esri::ArcGISRuntime::DomainType Domain::domainType () const
Returns the instantiated type of the domain object.
[since Esri::ArcGISRuntime 100.14]
Esri::ArcGISRuntime::FieldType Domain::fieldType () const
Returns the field type of the domain.
This function was introduced in Esri::ArcGISRuntime 100.14.
[static]
Esri::ArcGISRuntime::Domain Domain::fromJson (const QString &json)
Creates new Domain from json.
bool Domain::isEmpty () const
Returns true
if this Domain is empty.
QString Domain::name() const
Returns the name of the domain.
[override virtual]
QString Domain::toJson () const
Reimplements: JsonSerializable::toJson() const.
Returns the Domain as a JSON string representation.
See also JsonSerializable.
[since Esri::ArcGISRuntime 200.2]
bool Domain::operator!=(const Esri::ArcGISRuntime::Domain &other) const
Inequality operator. Returns true
if this object and other are not equal.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also Domain::operator==.
[noexcept]
Esri::ArcGISRuntime::Domain &Domain::operator=(Esri::ArcGISRuntime::Domain &&other)
Move operator from other Domain.
Esri::ArcGISRuntime::Domain &Domain::operator=(const Esri::ArcGISRuntime::Domain &other)
Assignment operator from other Domain.
[since Esri::ArcGISRuntime 100.9]
bool Domain::operator==(const Esri::ArcGISRuntime::Domain &other) const
Tests and returns true
if this object is equal to a second Domain object.
- other - The object to compare.
This function was introduced in Esri::ArcGISRuntime 100.9.