37 void rename(std::string value);
61 void recordAliasHit(std::string value, std::string timestamp = {});
68 [[nodiscard]]
bool hasAlias(
const std::string& value)
const;
74 [[nodiscard]] std::size_t
aliasCount() const noexcept;
114 std::vector<
Alias> aliases_;
115 std::vector<std::
string> contractIds_;
116 std::
string createdAt_;
117 std::
string updatedAt_;
121 [[nodiscard]] const std::
string&
id() const noexcept;
122 [[nodiscard]] const std::
string&
name() const noexcept;
123 [[nodiscard]] const std::vector<
Alias>&
aliases() const noexcept;
124 [[nodiscard]] const std::vector<std::
string>&
contractIds() const noexcept;
125 [[nodiscard]] const std::
string&
createdAt() const noexcept;
126 [[nodiscard]] const std::
string&
updatedAt() const noexcept;
129 void setId(std::
string value);
Domain model for entity aliases.
Shared alias normalization and ranking helpers for core entities.
Small value object for normalized entity display names.
void removeAlias(std::string value)
Removes an alias.
void rename(EntityName value)
Renames the property with normalized entity text.
Property & operator=(const Property &)=delete
bool hasContractRelations() const noexcept
Checks whether the property has at least one linked contract.
const std::string & name() const noexcept
Property(const Property &)=delete
void removeContractId(std::string value)
Removes a linked contract identifier.
void setId(std::string value)
const std::vector< Alias > & aliases() const noexcept
void setCreatedAt(std::string value)
Property & operator=(Property &&)=delete
const std::string & updatedAt() const noexcept
const std::string & createdAt() const noexcept
std::size_t aliasCount() const noexcept
Returns the number of aliases.
void clearContractIds()
Clears all linked contract identifiers.
Property(Property &&)=delete
bool hasAlias(const std::string &value) const
Checks whether an alias exists on the property.
void setContractIds(std::vector< std::string > value)
Replaces all linked contract identifiers.
void recordAliasHit(std::string value, std::string timestamp={})
Records a usage hit for an alias.
std::size_t contractCount() const noexcept
Returns the number of linked contract identifiers.
void addAlias(Alias value)
Adds a normalized alias when it is not already present.
void clearAliases()
Clears all aliases from the property.
void setUpdatedAt(std::string value)
void addContractId(std::string value)
Adds a linked contract identifier when it is not already present.
const std::vector< std::string > & contractIds() const noexcept
void setAliases(std::vector< Alias > value)