Class ImageAssetRef

java.lang.Object
com.broadleafcommerce.order.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 an OrderItem for displaying product assets. Only supports image type assets.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    Text that corresponds to the HTML alt attribute that should be used when this asset is rendered in a browser.
    The fully-resolvable content-URL to the binary data of the asset.
    Text that corresponds to the HTML title attribute that should be used when this asset is rendered in a browser.
    int
     
    void
    setAltText(String altText)
    Text that corresponds to the HTML alt attribute that should be used when this asset is rendered in a browser.
    void
    setContentUrl(String contentUrl)
    The fully-resolvable content-URL to the binary data of the asset.
    void
    Text that corresponds to the HTML title attribute that should be used when this asset is rendered in a browser.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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
    • 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
    • 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