com.adobe.mediacore.metadata
Interface Metadata

All Known Implementing Classes:
MetadataNode

public interface Metadata

Generic interface to access metadata associated with PSDK objects.


Method Summary
 boolean containsKey(String key)
          Checks if the metadata contains the specified key.
 String getValue(String key)
          Returns the value associated with the specified key as string.
 boolean isEmpty()
          Checks if the metadata has any mapping defined.
 Set<String> keySet()
          Returns a Set containing the strings used as keys in this metadata.
 void setValue(String key, String value)
          Stores a String value into this metadata, replacing any existing value for the given key.
 byte[] toByteArray()
           
 

Method Detail

containsKey

boolean containsKey(String key)
Checks if the metadata contains the specified key.

Parameters:
key - the key to be looked for
Returns:
true if the key is found, false otherwise.

getValue

String getValue(String key)
Returns the value associated with the specified key as string.

Parameters:
key - a string key
Returns:
a string or null if the key is not found.

setValue

void setValue(String key,
              String value)
Stores a String value into this metadata, replacing any existing value for the given key.

Parameters:
key - a string
value - the value to be stored.

isEmpty

boolean isEmpty()
Checks if the metadata has any mapping defined.

Returns:
true if there are no values in it, false otherwise.

keySet

Set<String> keySet()
Returns a Set containing the strings used as keys in this metadata. If the metadata is empty, it will return an empty set.

Returns:
a set of strings

toByteArray

byte[] toByteArray()
Returns:
the current contents of this object, as a byte array.