The KML simple fields and key/value pairs obtained from the node's non-schema data. More...
Header: | #include <KmlNonSchemaData.h> |
Since: | Esri::ArcGISRuntime 200.5 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
KmlNonSchemaData(const QMap<QString, QString> &untypedAttributes, QObject *parent = nullptr) | |
virtual | ~KmlNonSchemaData() override |
void | addField(Esri::ArcGISRuntime::KmlSimpleField *field, const QVariant &attributeValue) |
void | addField(const QString &name, const QString &attributeValue) |
QVariantMap | attributes() const |
Esri::ArcGISRuntime::KmlSimpleField * | field(const QString &name) const |
QList<Esri::ArcGISRuntime::KmlSimpleField *> | fields() const |
void | removeField(const QString &name) |
void | setAttributeValue(const QString &attributeName, const QVariant &attributeValue) |
Static Public Members
Esri::ArcGISRuntime::KmlNonSchemaData * | create(const QMap<Esri::ArcGISRuntime::KmlSimpleField *, QVariant> &typedAttributes, QObject *parent = nullptr) |
Detailed Description
Member Function Documentation
[since Esri::ArcGISRuntime 200.6]
KmlNonSchemaData::KmlNonSchemaData (const QMap<QString, QString> &untypedAttributes , QObject *parent = nullptr)
Creates untyped non-schema data from the attribute key-value pairs.
- untypedAttributes - The key-value pairs of the non-schema data.
- parent - The optional parent QObject.
This function was introduced in Esri::ArcGISRuntime 200.6.
[override virtual]
KmlNonSchemaData::~KmlNonSchemaData ()
Destructor.
[since Esri::ArcGISRuntime 200.6]
void KmlNonSchemaData::addField (Esri::ArcGISRuntime::KmlSimpleField *field, const QVariant &attributeValue )
Adds the given field with an attribute value.
- field - The field.
- attributeValue - The attribute value.
This function was introduced in Esri::ArcGISRuntime 200.6.
[since Esri::ArcGISRuntime 200.6]
void KmlNonSchemaData::addField (const QString &name, const QString &attributeValue )
Adds the given field as string type with an attribute value.
- name - The name of the field.
- attributeValue - The attribute value.
This function was introduced in Esri::ArcGISRuntime 200.6.
QVariantMap KmlNonSchemaData::attributes() const
Returns the key-value pairs obtained from the node's non-schema data.
[static, since Esri::ArcGISRuntime 200.6]
Esri::ArcGISRuntime::KmlNonSchemaData *KmlNonSchemaData::create(const QMap<Esri::ArcGISRuntime::KmlSimpleField *, QVariant> &typedAttributes , QObject *parent = nullptr)
Creates typed non-schema data from the attribute key-value pairs.
- typedAttributes - The key and value pairs of the non-schema data.
- parent - The optional parent QObject.
The data must be of the same type as the field (see KmlSimpleField::type, and KmlSimpleField::isArray must be false. Arrays are not supported for non-schema data.
This function was introduced in Esri::ArcGISRuntime 200.6.
Esri::ArcGISRuntime::KmlSimpleField *KmlNonSchemaData::field(const QString &name) const
Returns the KML simple field object with the given name, or nullptr
if no such field exists.
- name - The name of the KML simple field.
QList<Esri::ArcGISRuntime::KmlSimpleField *> KmlNonSchemaData::fields() const
Returns the collection of KML simple fields representing the non-schema data.
[since Esri::ArcGISRuntime 200.6]
void KmlNonSchemaData::removeField (const QString &name)
Removes the attribute corresponding to the provided field name from attributes and the corresponding field from fields.
- name - The name of the field to remove.
This function was introduced in Esri::ArcGISRuntime 200.6.
[since Esri::ArcGISRuntime 200.6]
void KmlNonSchemaData::setAttributeValue (const QString &attributeName , const QVariant &attributeValue )
Sets the value of an existing attribute.
- attributeName - The name of the attribute to update.
- attributeValue - The value to set for the attribute.
Object type must match the type of the attribute. Use QString for untyped attributes.
This function was introduced in Esri::ArcGISRuntime 200.6.