2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
Catalog base class
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
2022-04-08 09:35:33 -04:00
|
|
|
Copyright © 2022 Concordia CERC group
|
|
|
|
Project Coder Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
|
|
|
|
class Catalog:
|
|
|
|
"""
|
2022-04-08 18:03:35 -04:00
|
|
|
Catalogs base class not implemented instance of the Catalog base class, catalog_factories will inherit from this class.
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
|
2022-03-31 06:44:33 -04:00
|
|
|
def names(self, category=None):
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
Base property to return the catalog entries names
|
2022-03-31 06:44:33 -04:00
|
|
|
:return: Catalog names filter by category if provided
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
raise NotImplementedError
|
|
|
|
|
2022-03-09 11:40:06 -05:00
|
|
|
def entries(self, category=None):
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
Base property to return the catalog entries
|
2022-03-31 06:44:33 -04:00
|
|
|
:return: Catalog content filter by category if provided
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def get_entry(self, name):
|
|
|
|
"""
|
|
|
|
Base property to return the catalog entry matching the given name
|
2022-03-31 06:44:33 -04:00
|
|
|
:return: Catalog entry with the matching name
|
2022-03-03 16:52:01 -05:00
|
|
|
"""
|
|
|
|
raise NotImplementedError
|