IMetadata
Interfaces
IMetadata
Methods
deleteProperty()
deleteProperty(name): boolean;
Removes the value of the metadata property by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | property name. |
Returns
boolean
getProperties()
getProperties(): IMetadataProperty[];
Returns all metadata properties.
Returns
getPropertiesCount()
getPropertiesCount(): number;
Returns the number of metadata properties.
Returns
number
getProperty()
getProperty(name): IMetadataProperty;
Returns metadata property by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | property name. |
Returns
isPropertyExists()
isPropertyExists(name): boolean;
Checks for metadata property existence.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | property name. |
Returns
boolean
true if the template image exists, false otherwise.
setProperty()
setProperty(name, value): void;
Sets the value of a metadata property by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | property name. |
value | string | property value. |
Returns
void
Remarks
if a property with the same name already exists, its value is overwritten.