QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsNativeMetadataBaseValidator Class Reference

A validator for the native base QGIS metadata schema definition. More...

#include <qgslayermetadatavalidator.h>

Inheritance diagram for QgsNativeMetadataBaseValidator:
Inheritance graph
[legend]

Public Member Functions

 QgsNativeMetadataBaseValidator ()=default
 Constructor for QgsNativeMetadataBaseValidator. More...
 
bool validate (const QgsAbstractMetadataBase *metadata, QList< QgsAbstractMetadataBaseValidator::ValidationResult > &results) const override
 Validates a metadata object, and returns true if the metadata is considered valid. More...
 
- Public Member Functions inherited from QgsAbstractMetadataBaseValidator
virtual ~QgsAbstractMetadataBaseValidator ()=default
 
virtual bool validate (const QgsAbstractMetadataBase *metadata, QList< QgsAbstractMetadataBaseValidator::ValidationResult > &results) const =0
 Validates a metadata object, and returns true if the metadata is considered valid. More...
 

Detailed Description

A validator for the native base QGIS metadata schema definition.

Since
QGIS 3.2

Definition at line 113 of file qgslayermetadatavalidator.h.

Constructor & Destructor Documentation

◆ QgsNativeMetadataBaseValidator()

QgsNativeMetadataBaseValidator::QgsNativeMetadataBaseValidator ( )
default

Member Function Documentation

◆ validate()

bool QgsNativeMetadataBaseValidator::validate ( const QgsAbstractMetadataBase metadata,
QList< QgsAbstractMetadataBaseValidator::ValidationResult > &  results 
) const
overridevirtual

Validates a metadata object, and returns true if the metadata is considered valid.

If validation fails, the results list will be filled with a list of items describing why the validation failed and what needs to be rectified to fix the metadata.

Implements QgsAbstractMetadataBaseValidator.

Reimplemented in QgsNativeMetadataValidator, and QgsNativeProjectMetadataValidator.

Definition at line 26 of file qgslayermetadatavalidator.cpp.


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