Class ImageAssetRef

java.lang.Object
com.broadleafcommerce.cart.client.domain.ImageAssetRef
All Implemented Interfaces:
Serializable

public class ImageAssetRef extends Object implements Serializable
A reference object for holding data from a primary entity-asset (e.g., a product's primary image) that can be kept on a CartItem for displaying product assets. Only supports image type assets.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ImageAssetRef

      public ImageAssetRef()
  • Method Details

    • getContentUrl

      public String getContentUrl()
      The fully-resolvable content-URL to the binary data of the asset. It should be possible for a browser to hit this URL to retrieve the binary data.
      Returns:
      The fully-resolvable content-URL to the binary data of the asset.
    • getAltText

      public String getAltText()
      Text that corresponds to the HTML alt attribute that should be used when this asset is rendered in a browser. This is used as an alternative for screen-readers and as an SEO enhancement describing the asset.
      Returns:
      the altText for this asset
    • getTitle

      public String getTitle()
      Text that corresponds to the HTML title attribute that should be used when this asset is rendered in a browser. This is used a tooltip or caption.
      Returns:
      the title for this asset
    • getTags

      public LinkedHashSet<String> getTags()
      Descriptive or identifying labels.
      Returns:
      the tags for this asset
    • setContentUrl

      public void setContentUrl(String contentUrl)
      The fully-resolvable content-URL to the binary data of the asset. It should be possible for a browser to hit this URL to retrieve the binary data.
      Parameters:
      contentUrl - The fully-resolvable content-URL to the binary data of the asset.
    • setAltText

      public void setAltText(String altText)
      Text that corresponds to the HTML alt attribute that should be used when this asset is rendered in a browser. This is used as an alternative for screen-readers and as an SEO enhancement describing the asset.
      Parameters:
      altText - the value to set as the altText for this asset
    • setTitle

      public void setTitle(String title)
      Text that corresponds to the HTML title attribute that should be used when this asset is rendered in a browser. This is used a tooltip or caption.
      Parameters:
      title - the value to set as the title for this asset
    • setTags

      public void setTags(LinkedHashSet<String> tags)
      Descriptive or identifying labels.
      Parameters:
      tags - the value to set as the tags for this asset
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object