QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Public Attributes | List of all members
QgsAbstractMetadataBaseValidator::ValidationResult Class 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...
 
QVariant _identifier () const
 Returns the optional identifier for the failed metadata item. More...
 
void _setIdentifier (QVariant identifier)
 Sets the optional identifier for the failed metadata item. More...
 

Public Attributes

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.

Since
QGIS 3.0

Definition at line 46 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 54 of file qgslayermetadatavalidator.h.

Member Function Documentation

◆ _identifier()

QVariant QgsAbstractMetadataBaseValidator::ValidationResult::_identifier ( ) const
inline

Returns the 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 75 of file qgslayermetadatavalidator.h.

◆ _setIdentifier()

void QgsAbstractMetadataBaseValidator::ValidationResult::_setIdentifier ( QVariant  identifier)
inline

Sets the 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 83 of file qgslayermetadatavalidator.h.

Member Data Documentation

◆ note

QString QgsAbstractMetadataBaseValidator::ValidationResult::note

The reason behind the validation failure.

Definition at line 86 of file qgslayermetadatavalidator.h.

◆ section

QString QgsAbstractMetadataBaseValidator::ValidationResult::section

Metadata section which failed the validation.

Definition at line 61 of file qgslayermetadatavalidator.h.


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