FOSSredder 0.5.0
Loading...
Searching...
No Matches
WorkspaceCatalog.cpp
Go to the documentation of this file.
1
5
7
8#include <utility>
9
10namespace core::domain::catalog {
11
13
14const WorkspaceCatalog::PropertyList& WorkspaceCatalog::properties() const noexcept { return properties_; }
15void WorkspaceCatalog::setProperties(PropertyList value) { properties_ = std::move(value); }
16
17const WorkspaceCatalog::ActorList& WorkspaceCatalog::actors() const noexcept { return actors_; }
18void WorkspaceCatalog::setActors(ActorList value) { actors_ = std::move(value); }
19
20const WorkspaceCatalog::ContractList& WorkspaceCatalog::contracts() const noexcept { return contracts_; }
21void WorkspaceCatalog::setContracts(ContractList value) { contracts_ = std::move(value); }
22
23const WorkspaceCatalog::StatementList& WorkspaceCatalog::statements() const noexcept { return statements_; }
24void WorkspaceCatalog::setStatements(StatementList value) { statements_ = std::move(value); }
25
26const WorkspaceCatalog::TransactionList& WorkspaceCatalog::transactions() const noexcept { return transactions_; }
27void WorkspaceCatalog::setTransactions(TransactionList value) { transactions_ = std::move(value); }
28
29const WorkspaceCatalog::AnalysisList& WorkspaceCatalog::analyses() const noexcept { return analyses_; }
30void WorkspaceCatalog::setAnalyses(AnalysisList value) { analyses_ = std::move(value); }
31
32const WorkspaceCatalog::AnnualList& WorkspaceCatalog::annuals() const noexcept { return annuals_; }
33void WorkspaceCatalog::setAnnuals(AnnualList value) { annuals_ = std::move(value); }
34
35bool WorkspaceCatalog::empty() const noexcept {
36 return properties_.empty() && actors_.empty() && contracts_.empty() &&
37 statements_.empty() && transactions_.empty() && analyses_.empty() &&
38 annuals_.empty();
39}
40
41} // namespace core::domain::catalog
Domain aggregate that stores catalog entities for one workspace.
EntityList< core::domain::Contract > ContractList
EntityList< core::domain::Transaction > TransactionList
void setAnnuals(AnnualList value)
Replaces all annuals in the catalog.
EntityList< core::domain::Annual > AnnualList
const PropertyList & properties() const noexcept
Returns all properties in the catalog.
void setAnalyses(AnalysisList value)
Replaces all analyses in the catalog.
EntityList< core::domain::Analysis > AnalysisList
void setProperties(PropertyList value)
Replaces all properties in the catalog.
void setStatements(StatementList value)
Replaces all statements in the catalog.
EntityList< core::domain::Property > PropertyList
const AnnualList & annuals() const noexcept
Returns all annuals in the catalog.
EntityList< core::domain::Statement > StatementList
const StatementList & statements() const noexcept
Returns all statements in the catalog.
const TransactionList & transactions() const noexcept
Returns all transactions in the catalog.
bool empty() const noexcept
Checks whether all catalog collections are empty.
void setActors(ActorList value)
Replaces all actors in the catalog.
const ActorList & actors() const noexcept
Returns all actors in the catalog.
void setContracts(ContractList value)
Replaces all contracts in the catalog.
const ContractList & contracts() const noexcept
Returns all contracts in the catalog.
const AnalysisList & analyses() const noexcept
Returns all analyses in the catalog.
void setTransactions(TransactionList value)
Replaces all transactions in the catalog.
EntityList< core::domain::Actor > ActorList