Packagecom.adobe.bridge
Classpublic class Metadata
InheritanceMetadata Inheritance CSHostObject Inheritance flash.utils.Proxy

Since : CS5

This is external data associated with the file, such a copyright owner, author, or camera settings.Access the Metadata object for a file-type thumbnail through Thumbnail.metadata . When a script needs to access the metadata through the Thumbnail object, it is important to make sure that the returned object contains the most current data. To ensure this, your script should set app.synchronousMode to true before attempting to retrieve values through Thumbnail.metadata , or else use Thumbnail.synchronousMetadata . Keep in mind, however, that metadata access is a time-intensive operation. Do not do it unnecessarily, or as part of operations that occur very frequently, such as a MenuItem onDisplay callback function.The Metadata object does not support multi-valued properties.



Public Properties
 PropertyDefined By
 InheritedhostObjectDelegate : HostObject
Getter for the delegate
CSHostObject
  namespace : String
The current XMP namespace, used to search for XMP properties.
Metadata
Public Methods
 MethodDefined By
  
Metadata(blob:String = null)
Metadata
  
Adds metadata properties to this object that were saved to an XMP template from the FileInfo dialog.
Metadata
 Inherited
filterArgsForHBAPI(args:Array):Array
[static] Function to clean up the argument list and put it into a format that makes sense for HBAPI.
CSHostObject
 Inherited
filterSingleObjectForHBAPI(value:Object):Object
[static]
CSHostObject
 Inherited
getClassObjectForName(className:String):HostObject
[static] This returns a "Class" object, meaning, a HostObject that can be used to make static function calls or get static properties
CSHostObject
 Inherited
getSpecialTranslation(className:String, ho:HostObject, expectedReturnType:Class, ownerName:String):*
[static]
CSHostObject
 Inherited
hostCall(name:String, expectedReturnType:Class, rawargs:Array):*
Encapsulates a function call to the host
CSHostObject
 Inherited
hostCallStatic(className:String, methodName:String, expectedReturnType:Class, rawargs:Array):*
[static] Implements a safe call of a static method on the host
CSHostObject
 Inherited
hostGet(name:String, expectedReturnType:Class):*
Encapsulates a property get to the host
CSHostObject
 Inherited
hostGetIndex(idx:Object, expectedReturnType:Class):*
Encapsulates a indexed get to the host
CSHostObject
 Inherited
hostGetStatic(className:String, propertyName:String, expectedReturnType:Class):*
[static] Implements a safe get of a static property on the host Used by for instance, all the enum implementations.
CSHostObject
 Inherited
hostSet(name:String, rawvalue:*):void
Encapsulates a property set to the host
CSHostObject
 Inherited
hostSetStatic(className:String, propertyName:String, rawvalue:*):*
[static] Implements a safe set of a static property on the host
CSHostObject
 Inherited
isDescendedFrom(clz:Class, ancClass:Class):Boolean
[static] Efficiently determines whether or not one class descends from another in inheritance hierarchy- class relationships are cached by the ClassUtils implementation- (uses org.as3commons lib to quickly discover class hierarchy.
CSHostObject
  
read(namespace:String, uri:String):String
Retrieves and returns the string value of a metadata property in the specified namespace.
Metadata
 Inherited
replaceDefaultArgs(args:Array, defaultArgs:Array):Array
Function to tidy up arguments prior to call.
CSHostObject
  
serialize():String
Serializes the XMP packet into a string.
Metadata
 Inherited
wrapReturnedHostObject(rawObject:Object, expectedReturnType:Class, client:CSHostObject, propertyName:String):*
[static] Method used on static/normal get/ hostcalls
CSHostObject
Protected Methods
 MethodDefined By
  
createWithArgs(args:Array):void
[override]
Metadata
 Inherited
hostCreate(args:Array):void
CSHostObject
Property Detail
namespaceproperty
namespace:String

Since : CS5

The current XMP namespace, used to search for XMP properties.


Implementation
    public function get namespace():String
    public function set namespace(value:String):void
Constructor Detail
Metadata()Constructor
public function Metadata(blob:String = null)

Since : CS5

Parameters
blob:String (default = null) — (String)
Method Detail
applyMetadataTemplate()method
public function applyMetadataTemplate():void

Since : CS5

Adds metadata properties to this object that were saved to an XMP template from the FileInfo dialog.

createWithArgs()method 
override protected function createWithArgs(args:Array):void

Since : CS5

Parameters

args:Array

read()method 
public function read(namespace:String, uri:String):String

Since : CS5

Retrieves and returns the string value of a metadata property in the specified namespace.

Parameters

namespace:String — (String)
 
uri:String — (String)

Returns
String
serialize()method 
public function serialize():String

Since : CS5

Serializes the XMP packet into a string.

Returns
String