Skip to main content

IMetadata

Interfaces​

IMetadata​

Methods​

deleteProperty()​
deleteProperty(name): boolean;

Removes the value of the metadata property by name.

Parameters​
ParameterTypeDescription
namestringproperty name.
Returns​

boolean

getProperties()​
getProperties(): IMetadataProperty[];

Returns all metadata properties.

Returns​

IMetadataProperty[]

getPropertiesCount()​
getPropertiesCount(): number;

Returns the number of metadata properties.

Returns​

number

getProperty()​
getProperty(name): IMetadataProperty;

Returns metadata property by name.

Parameters​
ParameterTypeDescription
namestringproperty name.
Returns​

IMetadataProperty

isPropertyExists()​
isPropertyExists(name): boolean;

Checks for metadata property existence.

Parameters​
ParameterTypeDescription
namestringproperty 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​
ParameterTypeDescription
namestringproperty name.
valuestringproperty value.
Returns​

void

Remarks​

if a property with the same name already exists, its value is overwritten.

Was this page helpful?