new_DocumentMetadata

Create a new metadata value.

Syntax

new_DocumentMetadata <metadata name> <is query able flag> <value in hwstring>

Type/Class

ParsedDocument

Description

Create a new metadata value. Returns new metadata handle, which can be used to add metadata to content.
metadata name
Metadata name in the content definition .xml file.
is query able flag
Flag to set if this metadata can be queried
0
Cannot be queried
1
Can be queried
value in hwstring
metadata value in hwstring form

Examples

set metaval "fileType"
set val "H3D"
set v1 [hwVariant]
$v1 SetString $val
set dm [new_DocumentMetadata $metaval 1 $v1]