Class: QgsLayerMetadataSearchResults¶
- class qgis.core.QgsLayerMetadataSearchResults¶
Bases:
sip.wrapper
Container of result records from a layer metadata search.
Contains the records of the layer metadata provider that matched the search criteria and the list of the errors that occurred while searching for metadata.
New in version 3.28:
Methods
Adds a
error
to the list of errors.Adds a
Metadata
record to the list of results.Returns the list of errors occurred during a metadata search.
Returns the list of metadata results.
- addError(self, error: str)¶
Adds a
error
to the list of errors.- Parameters:
error (str) –
- addMetadata(self, metadata: QgsLayerMetadataProviderResult)¶
Adds a
Metadata
record to the list of results.- Parameters:
metadata (QgsLayerMetadataProviderResult) –
- errors(self) List[str] ¶
Returns the list of errors occurred during a metadata search.
- Return type:
List[str]
- metadata(self) List[QgsLayerMetadataProviderResult] ¶
Returns the list of metadata results.
- Return type: