info.magnolia.dam.asset.metadata
Class AssetMetadataRegistry

java.lang.Object
  extended by info.magnolia.dam.asset.metadata.AssetMetadataRegistry

public class AssetMetadataRegistry
extends Object

The registry for AssetMetadatas.


Constructor Summary
AssetMetadataRegistry()
           
 
Method Summary
 AssetMetadata getAssetMetadata(String assetMetadataIdentifier)
          Get a specific AssetMetadata.
 Collection<AssetMetadata> getRegisteredAssetMetadatas()
          Get all registered AssetMetadata.
 Collection<String> getSupportedAssetMetadataName()
           
 boolean isAssetMetadataSupported(String assetMetadataIdentifier)
           
 void registerMetadata(AssetMetadata assetMetadata)
          Register a new AssetMetadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetMetadataRegistry

public AssetMetadataRegistry()
Method Detail

registerMetadata

public void registerMetadata(AssetMetadata assetMetadata)
Register a new AssetMetadata.


getRegisteredAssetMetadatas

public Collection<AssetMetadata> getRegisteredAssetMetadatas()
Get all registered AssetMetadata.


getAssetMetadata

public AssetMetadata getAssetMetadata(String assetMetadataIdentifier)
                               throws AssetMetadataTypeNotSupportedException
Get a specific AssetMetadata.

Returns:
Throws:
AssetMetadataTypeNotSupportedException

isAssetMetadataSupported

public boolean isAssetMetadataSupported(String assetMetadataIdentifier)
Returns:
true if the AssetMetadata name is part of the registry.

getSupportedAssetMetadataName

public Collection<String> getSupportedAssetMetadataName()
Returns:
the a Collection containing the name of the supported AssetMetadata.


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.