QGIS API Documentation
3.6.0-Noosa (5873452)
|
Abstract base class for metadata validators. More...
#include <qgslayermetadatavalidator.h>
Classes | |
struct | ValidationResult |
Contains the parameters describing a metadata validation failure. More... | |
Public Member Functions | |
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... | |
Abstract base class for metadata validators.
Definition at line 36 of file qgslayermetadatavalidator.h.
|
virtualdefault |
|
pure virtual |
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.
Implemented in QgsNativeProjectMetadataValidator, QgsNativeMetadataValidator, and QgsNativeMetadataBaseValidator.