Class ImageImpl
- All Implemented Interfaces:
Image
,io.vrap.rmf.base.client.ModelBase
An Image uploaded to commercetools Composable Commerce is stored in a Content Delivery Network and it's available in several pre-defined sizes. If you already have an image stored on an external service, you can save the URL when creating a new product or adding a variant, or you can add it later.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Dimensions of the original image.getLabel()
Custom label that can be used, for example, as an image description.getUrl()
URL of the image in its original size.int
hashCode()
void
setDimensions
(AssetDimensions dimensions) Dimensions of the original image.void
Custom label that can be used, for example, as an image description.void
URL of the image in its original size.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ImageImpl
public ImageImpl()create empty instance
-
-
Method Details
-
getUrl
URL of the image in its original size. The URL must be unique within a single variant. It can be used to obtain the image in different sizes.
-
getDimensions
Dimensions of the original image. This can be used by your application, for example, to determine whether the image is large enough to display a zoom view.
- Specified by:
getDimensions
in interfaceImage
- Returns:
- dimensions
-
getLabel
Custom label that can be used, for example, as an image description.
-
setUrl
Description copied from interface:Image
URL of the image in its original size. The URL must be unique within a single variant. It can be used to obtain the image in different sizes.
-
setDimensions
Description copied from interface:Image
Dimensions of the original image. This can be used by your application, for example, to determine whether the image is large enough to display a zoom view.
- Specified by:
setDimensions
in interfaceImage
- Parameters:
dimensions
- value to be set
-
setLabel
Description copied from interface:Image
Custom label that can be used, for example, as an image description.
-
equals
-
hashCode
public int hashCode()
-