QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | Public Attributes | List of all members
QgsAbstractMetadataBaseValidator::ValidationResult Struct Reference

Contains the parameters describing a metadata validation failure. More...

#include <qgslayermetadatavalidator.h>

Public Member Functions

 ValidationResult (const QString &section, const QString &note, const QVariant &identifier=QVariant())
 Constructor for ValidationResult. More...
 

Public Attributes

QVariant identifier
 Optional identifier for the failed metadata item. More...
 
QString note
 The reason behind the validation failure. More...
 
QString section
 Metadata section which failed the validation. More...
 

Detailed Description

Contains the parameters describing a metadata validation failure.

Definition at line 45 of file qgslayermetadatavalidator.h.

Constructor & Destructor Documentation

◆ ValidationResult()

QgsAbstractMetadataBaseValidator::ValidationResult::ValidationResult ( const QString &  section,
const QString &  note,
const QVariant &  identifier = QVariant() 
)
inline

Constructor for ValidationResult.

Definition at line 51 of file qgslayermetadatavalidator.h.

Member Data Documentation

◆ identifier

QVariant QgsAbstractMetadataBaseValidator::ValidationResult::identifier

Optional identifier for the failed metadata item.

For instance, in list type metadata elements this will be set to the list index of the failed metadata item.

Definition at line 66 of file qgslayermetadatavalidator.h.

◆ note

QString QgsAbstractMetadataBaseValidator::ValidationResult::note

The reason behind the validation failure.

Definition at line 69 of file qgslayermetadatavalidator.h.

◆ section

QString QgsAbstractMetadataBaseValidator::ValidationResult::section

Metadata section which failed the validation.

Definition at line 58 of file qgslayermetadatavalidator.h.


The documentation for this struct was generated from the following file: