org.hippoecm.hst.content.rewriter
Interface ImageVariant

All Known Implementing Classes:
DefaultImageVariant

public interface ImageVariant


Method Summary
 String getName()
           
 List<String> getReplaces()
          Returns the List of variants that should be replaced with getName() and an EMPTY List if no explicit items for replaces are configured.
 boolean isFallback()
           
 

Method Detail

getName

String getName()
Returns:
the variant name to use. This value is never null or blank (empty)

getReplaces

List<String> getReplaces()
Returns the List of variants that should be replaced with getName() and an EMPTY List if no explicit items for replaces are configured. When all variants need to be replaced by default, this List can return EMPTY list

Returns:
the List of variants that should be replaced with getName() and an EMPTY List if no explicit items for replaces are configured

isFallback

boolean isFallback()
Returns:
true when the original variant should be shown when the variant for name does not exist


Copyright © 2008-2012 Hippo. All Rights Reserved.