Class ImageAssetRef
java.lang.Object
com.broadleafcommerce.order.client.domain.ImageAssetRef
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Text that corresponds to the HTMLalt
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.getTitle()
Text that corresponds to the HTMLtitle
attribute that should be used when this asset is rendered in a browser.int
hashCode()
void
setAltText
(String altText) Text that corresponds to the HTMLalt
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 HTMLtitle
attribute that should be used when this asset is rendered in a browser.toString()
-
Constructor Details
-
ImageAssetRef
public ImageAssetRef()
-
-
Method Details
-
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
Text that corresponds to the HTMLalt
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
Text that corresponds to the HTMLtitle
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
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
Text that corresponds to the HTMLalt
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
Text that corresponds to the HTMLtitle
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-