Domain Class

  • Domain
  • class Esri::ArcGISRuntime::Domain

    Base class for domains that specify the set of valid values for a field. More...

    Header: #include <Domain.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::JsonSerializable
    Inherited By:

    Esri::ArcGISRuntime::CodedValueDomain, Esri::ArcGISRuntime::InheritedDomain, and Esri::ArcGISRuntime::RangeDomain

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    Domain(Esri::ArcGISRuntime::Domain &&other)
    Domain(const Esri::ArcGISRuntime::Domain &other)
    Domain()
    Esri::ArcGISRuntime::Domain &operator=(Esri::ArcGISRuntime::Domain &&other)
    Esri::ArcGISRuntime::Domain &operator=(const Esri::ArcGISRuntime::Domain &other)
    virtual ~Domain() override
    Esri::ArcGISRuntime::DomainType domainType() const
    Esri::ArcGISRuntime::FieldType fieldType() const
    bool isEmpty() const
    QString name() const
    bool operator==(const Esri::ArcGISRuntime::Domain &other) const

    Reimplemented Public Functions

    virtual QString toJson() const override
    virtual QJsonObject unknownJson() const override
    virtual QJsonObject unsupportedJson() const override

    Static Public Members

    Esri::ArcGISRuntime::Domain fromJson(const QString &json)

    Detailed Description

    The following domain types are available:

    • Coded Value Domain
    • Inherited Domain
    • Range Domain

    Member Function Documentation

    Domain::Domain(Esri::ArcGISRuntime::Domain &&other)

    Move constructor from other Domain.

    Domain::Domain(const Esri::ArcGISRuntime::Domain &other)

    Copy constructor from other Domain.

    Domain::Domain()

    Default constructor. Creates an empty Domain with domainType DomainType::Unknown.

    See also DomainType.

    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.

    [override virtual] Domain::~Domain()

    Destructor.

    Esri::ArcGISRuntime::DomainType Domain::domainType() const

    Returns the type of the domain.

    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.

    [override virtual] QJsonObject Domain::unknownJson() const

    Reimplements: JsonSerializable::unknownJson() const.

    Gets the unknown JSON of this object.

    See also JsonSerializable.

    [override virtual] QJsonObject Domain::unsupportedJson() const

    Reimplements: JsonSerializable::unsupportedJson() const.

    Gets the unsupported JSON of this object.

    See also JsonSerializable.

    bool Domain::operator==(const Esri::ArcGISRuntime::Domain &other) const

    Equivalency operator. Returns true if this object and other are equal.

    Tests if two domain objects are equal.

    This function was introduced in Esri::ArcGISRuntime 100.9.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close