|
FOSSredder 0.5.0
|
#include <Property.h>
Public Member Functions | |
| Property () | |
| Property (const Property &)=delete | |
| Property (Property &&)=delete | |
| Property & | operator= (const Property &)=delete |
| Property & | operator= (Property &&)=delete |
| void | rename (EntityName value) |
| Renames the property with normalized entity text. | |
| void | rename (std::string value) |
| Renames the property with raw text. | |
| void | addAlias (Alias value) |
| Adds a normalized alias when it is not already present. | |
| void | removeAlias (std::string value) |
| Removes an alias. | |
| void | clearAliases () |
| Clears all aliases from the property. | |
| void | recordAliasHit (std::string value, std::string timestamp={}) |
| Records a usage hit for an alias. | |
| bool | hasAlias (const std::string &value) const |
| Checks whether an alias exists on the property. | |
| std::size_t | aliasCount () const noexcept |
| Returns the number of aliases. | |
| void | setContractIds (std::vector< std::string > value) |
| Replaces all linked contract identifiers. | |
| void | addContractId (std::string value) |
| Adds a linked contract identifier when it is not already present. | |
| void | removeContractId (std::string value) |
| Removes a linked contract identifier. | |
| void | clearContractIds () |
| Clears all linked contract identifiers. | |
| bool | hasContractRelations () const noexcept |
| Checks whether the property has at least one linked contract. | |
| std::size_t | contractCount () const noexcept |
| Returns the number of linked contract identifiers. | |
| const std::string & | id () const noexcept |
| const std::string & | name () const noexcept |
| const std::vector< Alias > & | aliases () const noexcept |
| const std::vector< std::string > & | contractIds () const noexcept |
| const std::string & | createdAt () const noexcept |
| const std::string & | updatedAt () const noexcept |
| void | setId (std::string value) |
| void | setAliases (std::vector< Alias > value) |
| void | setCreatedAt (std::string value) |
| void | setUpdatedAt (std::string value) |
Definition at line 19 of file Property.h.
|
default |
|
delete |
|
delete |
| void core::domain::Property::addAlias | ( | Alias | value | ) |
Adds a normalized alias when it is not already present.
| value | Alias to add. |
Definition at line 34 of file Property.cpp.
| void core::domain::Property::addContractId | ( | std::string | value | ) |
Adds a linked contract identifier when it is not already present.
| value | Contract identifier to add. |
Definition at line 63 of file Property.cpp.
|
nodiscardnoexcept |
|
nodiscardnoexcept |
Definition at line 90 of file Property.cpp.
| void core::domain::Property::clearAliases | ( | ) |
Clears all aliases from the property.
Definition at line 47 of file Property.cpp.
| void core::domain::Property::clearContractIds | ( | ) |
Clears all linked contract identifiers.
Definition at line 76 of file Property.cpp.
|
nodiscardnoexcept |
Returns the number of linked contract identifiers.
Definition at line 84 of file Property.cpp.
|
nodiscardnoexcept |
Definition at line 91 of file Property.cpp.
|
nodiscardnoexcept |
Definition at line 92 of file Property.cpp.
|
nodiscard |
Checks whether an alias exists on the property.
| value | Alias text to search for. |
Definition at line 55 of file Property.cpp.
|
nodiscardnoexcept |
Checks whether the property has at least one linked contract.
Definition at line 80 of file Property.cpp.
|
nodiscardnoexcept |
Definition at line 88 of file Property.cpp.
|
nodiscardnoexcept |
Definition at line 89 of file Property.cpp.
| void core::domain::Property::recordAliasHit | ( | std::string | value, |
| std::string | timestamp = {} ) |
Records a usage hit for an alias.
| value | Alias value. |
| timestamp | Optional usage timestamp. |
Definition at line 51 of file Property.cpp.
| void core::domain::Property::removeAlias | ( | std::string | value | ) |
| void core::domain::Property::removeContractId | ( | std::string | value | ) |
Removes a linked contract identifier.
| value | Contract identifier to remove. |
Definition at line 71 of file Property.cpp.
| void core::domain::Property::rename | ( | EntityName | value | ) |
Renames the property with normalized entity text.
| value | Normalized entity name wrapper. |
Definition at line 15 of file Property.cpp.
| void core::domain::Property::rename | ( | std::string | value | ) |
Renames the property with raw text.
| value | Raw entity name text. |
Definition at line 19 of file Property.cpp.
| void core::domain::Property::setAliases | ( | std::vector< Alias > | value | ) |
Definition at line 23 of file Property.cpp.
| void core::domain::Property::setContractIds | ( | std::vector< std::string > | value | ) |
Replaces all linked contract identifiers.
| value | Contract identifiers. |
Definition at line 28 of file Property.cpp.
| void core::domain::Property::setCreatedAt | ( | std::string | value | ) |
Definition at line 95 of file Property.cpp.
| void core::domain::Property::setId | ( | std::string | value | ) |
Definition at line 94 of file Property.cpp.
| void core::domain::Property::setUpdatedAt | ( | std::string | value | ) |
Definition at line 96 of file Property.cpp.
|
nodiscardnoexcept |
Definition at line 93 of file Property.cpp.