Class DigitalAssetRendition

All Implemented Interfaces:
Serializable

public class DigitalAssetRendition extends AssetLinksObject
Information for a digital asset rendition, which can also have multiple formats.
See Also:
  • Constructor Details

    • DigitalAssetRendition

      public DigitalAssetRendition()
  • Method Details

    • getName

      public String getName()
      Get raw name string for the rendition. See also getRendition()
      Returns:
      rendition name
    • getRendition

      public RenditionType getRendition()
      Get the enum value for the rendition. If not one of the common renditions, this will return RenditionType.Unknown and getName() can get used to get the custom name.
      Returns:
      enum rendition value
    • getFormats

    • getType

      public String getType()
      This will normally be a string such as "responsiveimage"
      Returns:
      rendition type such as "responsiveimage"
    • getBestMatchingFormat

      public DigitalAssetRendition.RenditionFormat getBestMatchingFormat(String formatName)
      Search for a specific format (e.g. "jpg") but will return the first format in the list if there is not an exact match.
      Parameters:
      formatName - preferred format name.
      Returns:
      first format in list or format that exactly matches formatName, or null if no formats