Specifications
modified. If the array only has 1 existing item (which is not x-default),
an x-default item is added with the given value.
If the selected item is from a match with the generic language and
there are no other generic matches, the value of that item is modified.
If the existing value of that item matches the existing value of the
x-default item, the x-default item is also modified. If the array only
has 1 existing item (which is not x-default), an x-default item is added
with the given value.
If the selected item is from a partial match with the generic language
and there are other partial matches, a new item is created for the
specific language. The x-default item is not modified.
If the selected item is from the last 2 rules then a new item is created
for the specific language. If the array only had an x-default item, the
x-default item is also modified. If the array was empty, items are
created for the specific language and x-default.
Returns true if successful, false if the specified property does not exist
or is not an Alt-Text array.
Adding structs and arrays
The set functions described below create struct or array properties. They succeed if:
• The specified property exists and it is has the appropriate type: nothing happens.
• The specified property does not exist, but its immediate parent does exist and it is a struct:
the property is created with the appropriate type.
• The specified property does not exist, but its immediate parent does exist and it is an array:
the property is created with the specified index and the appropriate type; any missing array
items (that is, siblings of the property with a lower index) are created as well with the same
type.
Creates a struct property at the specified XMP
location path. Returns true if successful, false
otherwise.
setStruct( xmp-path : String, prefix-map
: Map ) : Boolean
Creates an unordered array property (“Bag”) at the
specified XMP location path. Returns true if
successful, false otherwise.
setUnorderedArray( xmp-path : String,
prefix-map : Map ) : Boolean
Creates an ordered array property (“Seq”) at the
specified XMP location path. Returns true if
successful, false otherwise.
setOrderedArray( xmp-path : String,
prefix-map : Map ) : Boolean
Creates an alternate array property (“Alt”) at the
specified XMP location path. Returns true if
successful, false otherwise.
setAlternateArray( xmp-path : String,
prefix-map : Map ) : Boolean
Note:
To change the type of a property between leaf, array and struct, first remove the property and
then create it again with the appropriate set function.
485
Enfocus Switch 10