Constructor
new Annotated(metadata)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
metadata |
Object | Map | Array | List | Arbitrary list of metadata. An object/Map is converted to a named List, while an array is converted to an unnamed List. |
Classes
Methods
metadata() → {List}
- Source:
Returns:
List of arbitrary metadata.
- Type
- List
setMetadata(value, optionsopt) → {Annotated}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
value |
Object | Map | Array | List | Object containing the metadata. |
||||||||||||
options |
Object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
The Annotated object after replacing the metadata.
If inPlace = true
, this is a reference to the current instance, otherwise a new instance is created and returned.
- Type
- Annotated