RangeDomain Class

  • RangeDomain
  • class Esri::ArcGISRuntime::RangeDomain

    The range of valid numbers or dates for a Field. More...

    Header: #include <RangeDomain.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Domain

    Public Functions

    RangeDomain()
    RangeDomain(const Esri::ArcGISRuntime::RangeDomain &other)
    RangeDomain(Esri::ArcGISRuntime::RangeDomain &&other)
    RangeDomain(const Esri::ArcGISRuntime::Domain &other)
    virtual ~RangeDomain() override
    bool isValid() const
    QVariant maxValue() const
    QVariant minValue() const
    Esri::ArcGISRuntime::RangeDomain &operator=(const Esri::ArcGISRuntime::RangeDomain &other)
    Esri::ArcGISRuntime::RangeDomain &operator=(Esri::ArcGISRuntime::RangeDomain &&other)

    Detailed Description

    A range domain can specify the minimum and maximum value of a number or date for a field. Data entries outside the range will not be accepted in the field. When a user is editing data, you can present the minValue and maxValue to guide the user, and validate their input against the range domain before changes are saved. This helps to maintain data integrity.

    Member Function Documentation

    RangeDomain::RangeDomain()

    Default constructor. Creates an empty and invalid RangeDomain with domainType DomainType::Unknown.

    See also DomainType.

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

    Copy constructor from other RangeDomain.

    RangeDomain::RangeDomain(Esri::ArcGISRuntime::RangeDomain &&other)

    Move constructor from other RangeDomain.

    [explicit] RangeDomain::RangeDomain(const Esri::ArcGISRuntime::Domain &other)

    Converting constructor from other Domain.

    See also Downcast helper functions.

    [override virtual] RangeDomain::~RangeDomain()

    Destructor.

    [since Esri::ArcGISRuntime 100.2] bool RangeDomain::isValid() const

    Gets whether this RangeDomain is valid.

    A RangeDomain is valid if it is not empty and domainType is DomainType::RangeDomain.

    Returns true if valid.

    This function was introduced in Esri::ArcGISRuntime 100.2.

    QVariant RangeDomain::maxValue() const

    Returns the maximum value of the range.

    Note: The supported types are:

    QVariant RangeDomain::minValue() const

    Returns the minimum value of the range.

    Note: The supported types are:

    Esri::ArcGISRuntime::RangeDomain &RangeDomain::operator=(const Esri::ArcGISRuntime::RangeDomain &other)

    Assignment operator from other RangeDomain.

    Esri::ArcGISRuntime::RangeDomain &RangeDomain::operator=(Esri::ArcGISRuntime::RangeDomain &&other)

    Move operator from other RangeDomain.

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