info.magnolia.module.templatingkit.dam.assets
Class AssetWrapper

java.lang.Object
  extended by info.magnolia.module.templatingkit.dam.assets.AssetWrapper
All Implemented Interfaces:
Asset
Direct Known Subclasses:
AbstractInternalContentDAMHandler.InternalAssetVariation, AssetWithOverridingMetaData

public abstract class AssetWrapper
extends Object
implements Asset

Wrapper class for Asset.

Version:
$Id: AssetWrapper.java 52475 2011-12-08 15:14:25Z ehechinger $
Author:
pbracher

Field Summary
protected  Asset asset
           
 
Constructor Summary
AssetWrapper(Asset descriptor)
           
 
Method Summary
 String getCaption()
           
 String getCopyright()
           
 String getDescription()
           
 int getHeight()
           
 String getLink()
           
 String getMimeType()
           
 String getName()
           
 String getTitle()
           
 Asset getVariation(String variationName)
           
 int getWidth()
           
protected abstract  Asset wrapVariation(Asset assetVariaton)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asset

protected Asset asset
Constructor Detail

AssetWrapper

public AssetWrapper(Asset descriptor)
Method Detail

getCopyright

public String getCopyright()
Specified by:
getCopyright in interface Asset

getDescription

public String getDescription()
Specified by:
getDescription in interface Asset

getHeight

public int getHeight()
Specified by:
getHeight in interface Asset

getLink

public String getLink()
               throws DAMException
Specified by:
getLink in interface Asset
Throws:
DAMException

getName

public String getName()
Specified by:
getName in interface Asset

getCaption

public String getCaption()
Specified by:
getCaption in interface Asset

getTitle

public String getTitle()
Specified by:
getTitle in interface Asset

getVariation

public Asset getVariation(String variationName)
                   throws NoSuchVariationException,
                          DAMException
Specified by:
getVariation in interface Asset
Throws:
NoSuchVariationException
DAMException

wrapVariation

protected abstract Asset wrapVariation(Asset assetVariaton)

getWidth

public int getWidth()
Specified by:
getWidth in interface Asset

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Asset


Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.