Package org.silverpeas.components.gallery.model

# Class MetaDataSet

java.lang.Object
org.silverpeas.components.gallery.model.MetaDataSet

All Implemented Interfaces:
  `Serializable`

public class MetaDataSet extends Object implements Serializable
A set of metadata embedded in a media.

Author:
  mmoquillon
See Also:
  - Serialized Form

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addMetaData(MetaData data)`
  Adds a metadata.
  `MetaData`
  `getMetaData(String property)`
  Gets a metadata according to the specified property name.
  `Collection<String>`
  `getMetaDataProperties()`
  Gets all metadata property names.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### addMetaData

    public void addMetaData(MetaData data)
    Adds a metadata.
    Parameters:
      `data` - a metadata.

  - ### getMetaData

    public MetaData getMetaData(String property)
    Gets a metadata according to the specified property name.
    Parameters:
      `property` - the property name for which the metadata is requested.
    Returns:
      the metadata if it exists, null otherwise.

  - ### getMetaDataProperties

    public Collection<String> getMetaDataProperties()
    Gets all metadata property names.
    Returns:
      the list of metadata property names, empty list if no metadata.