
CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 280
getProperty()
XMPMetaObj.getProperty(schemaNS, propName[, valueType])
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
propName
The property name string. Can be a general path expression.
valueType
Optional, String. The property data type, one of:
XMPConst.STRING
XMPConst.INTEGER
XMPConst.NUMBER
XMPConst.BOOLEAN
XMPConst.XMPDATE
Retrieves the value and options of a metadata property. Use for top-level, simple properties, or after
using the path-composition functions in the XMPUtils object
.
Returns an XMPProperty object
, or undefined if the property is not found.
getStructField()
XMPMetaObj.getStructField(schemaNS, structName, fieldNS, fieldName)
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
structName
The structure name string. 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.
Retrieves a field value from within a nested structure in metadata.
Returns an XMPProperty object
, or undefined if the property is not found.
getQualifier()
XMPMetaObj.getQualifier(schemaNS, structName, qualNS, qualName)
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
structName
String. The structure name. Can be a general path expression.
qualNS
String. The URI of the qualifier namespace.
qualName
String. The qualifier name. Must be a simple XML name.
Retrieves a qualifier attached to a metadata property.
Returns an XMPProperty object
, or undefined if the property is not found.
Kommentare zu diesen Handbüchern