QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsNativeMetadataValidator Class Reference

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

#include <qgslayermetadatavalidator.h>

Inheritance diagram for QgsNativeMetadataValidator:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

A validator for the native QGIS layer metadata schema definition.

Since
QGIS 3.0

Definition at line 135 of file qgslayermetadatavalidator.h.

Constructor & Destructor Documentation

◆ QgsNativeMetadataValidator()

QgsNativeMetadataValidator::QgsNativeMetadataValidator ( )
default

Constructor for QgsNativeMetadataValidator.

Member Function Documentation

◆ validate()

bool QgsNativeMetadataValidator::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.

Reimplemented from QgsNativeMetadataBaseValidator.

Definition at line 138 of file qgslayermetadatavalidator.cpp.


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