Class for aliases.
Constructor for Alias.
The alias in JSON format.
const alias = new Alias({ language: 'en', value: 'Douglas Adams' }); Copy
const alias = new Alias({ language: 'en', value: 'Douglas Adams' });
The language of the alias.
The value of the alias.
Create a unique ID for the Alias.
The ID.
Check if two Aliases are equal.
The other alias.
True if the aliases are equal.
const alias1 = new Alias({ language: 'en', value: 'foo' }); const alias2 = new Alias({ language: 'en', value: 'bar' }); alias1.equals(alias2); // false Copy
const alias1 = new Alias({ language: 'en', value: 'foo' }); const alias2 = new Alias({ language: 'en', value: 'bar' }); alias1.equals(alias2); // false
Convert the alias to a JSON format.
const json = alias.toJSON(); Copy
const json = alias.toJSON();
Static
Create an Alias from a language and a value.
The language of the Alias.
The value of the Alias.
The Alias object.
const alias = Alias.fromString('en', 'Douglas Adams'); Copy
const alias = Alias.fromString('en', 'Douglas Adams');
Class for aliases.