
MediaRich Metadata Support 173
•
•
•
•
{
// file did not contain metadata.
}
Alternatively, you can simply use the get<Tag> methods, which will return null if the
document is empty.
IPTCMetadataObject
The following methods may be used to get and set metadata values for IPTC metadata.
Please refer the schema (IPTC.xsd) in the //Shared/Originals/Sys folder for the
required format for each of the IPTC fields. Note that only a brief description is provided
here. For a complete description of each IPTC metadata field, please consult the IPTC
news-photo metadata specification available at http://www.iptc.org under the title
“Digital Newsphoto Parameter Record”.
In the following table, the notation (string ...) indicates that multiple values may be
specified as arguments to the method.
Method Description
getVersion() Returns the version field.
setVersion(string) Sets the version field.
getObjectTypeReference() Returns the object type reference field.
setObjectTypeReference(string) Sets the object type reference field.
getObjectAttributeReference() Returns an array of attribute references.
setObjectAttributeReference
(string, ...)
Sets attribute references.
addObjectAttributeReference
(string, ...)
Adds an attribute references to the list.
setObjectAttributeReferenceArray
(array)
Sets a group of attribute references from an Array.
getObjectName() Returns the object name.
setObjectName(string) Sets the object name.
getEditStatus() Returns the edit status.
setEditStatus(string) Sets the edit status.
getEditorialUpdate() Returns the editorial update code.
setEditorialUpdate(string) Sets the editorial update code.
getUrgency() Returns the urgency code.
setUrgency(string) Sets the urgency code.
getSubjectReference() Returns an array of subject references.
setSubjectReference(string, ...) Sets subject references.