QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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.
 
QVariant identifier () const
 Returns the optional identifier for the failed metadata item.
 
void setIdentifier (const QVariant &identifier)
 Sets the optional identifier for the failed metadata item.
 

Public Attributes

QString note
 The reason behind the validation failure.
 
QString section
 Metadata section which failed the validation.
 

Detailed Description

Contains the parameters describing a metadata validation failure.

Definition at line 44 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 52 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 69 of file qgslayermetadatavalidator.h.

◆ setIdentifier()

void QgsAbstractMetadataBaseValidator::ValidationResult::setIdentifier ( const 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 77 of file qgslayermetadatavalidator.h.

Member Data Documentation

◆ note

QString QgsAbstractMetadataBaseValidator::ValidationResult::note

The reason behind the validation failure.

Definition at line 80 of file qgslayermetadatavalidator.h.

◆ section

QString QgsAbstractMetadataBaseValidator::ValidationResult::section

Metadata section which failed the validation.

Definition at line 59 of file qgslayermetadatavalidator.h.


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