
CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 285
setStructField()
XMPMetaObj.setStructField(schemaNS, structName, fieldNS, fieldName,
fieldValue[, options])
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
structName
The name string of an existing structure. Can be a general path expression.
fieldNS
The field type namespace string. See “Type namespace string constants” on
page 263.
fieldName
The field name string. Must be a simple XML name.
fieldValue
The new field value string. Pass null for fields that do not have values.
options
Optional, option flags that describe a new structure. Used only if the structure is
being created. One of:
0 — A simple item, the default.
XMPConst.PROP_IS_ARRAY — The item is an array (of type alt, bag, or seq).
XMPConst.PROP_IS_STRUCT — The item is a structure with nested fields.
Sets the value of a field within a structure-type property, or creates a new field if the named field
does not exist in the structure, or creates a new structure containing the named field if the named
structure does not exist.
Returns
undefined.
setQualifier()
XMPMetaObj.setQualifier(schemaNS, propName, qualNS, qualName, qualValue[, options])
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
propName
The name string of an existing property. Can be a general path expression.
qualNS
The URI of the qualifier namespace. Has the same URI and prefix usage as a schema
namespace.
qualName
String. The name of the qualifier. Must be a simple XML name. Has the same prefix
usage as a property name.
qualValue
The new qualifier value string. Pass null for qualifiers that do not have values.
options
Optional, option flags that describe the qualifier. Used only if the qualifier is being
created. One of:
0 — A simple item, the default.
XMPConst.PROP_IS_ARRAY — The item is an array (of type alt, bag, or seq).
XMPConst.PROP_IS_STRUCT — The item is a structure with nested fields.
Attaches a new qualifier to a metadata property. A qualifier can be added to a simple property, an
array item, a struct field, or another qualifier.
Returns
undefined.
Comentários a estes Manuais