Class VariantImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.product.VariantImpl
-
-
Constructor Summary
Constructors Constructor Description VariantImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Asset>
getAssets()
Integer
getColor()
String
getCurrency()
String
getDescription()
String
getFormattedPrice()
String
getId()
Boolean
getInStock()
String
getName()
Double
getPrice()
Price
getPriceRange()
String
getSku()
Map<String,Integer>
getVariantAttributes()
void
setAssets(List<Asset> assets)
void
setColor(Integer color)
void
setCurrency(String currency)
Deprecated.void
setDescription(String description)
void
setFormattedPrice(String formattedPrice)
Deprecated.void
setId(String id)
void
setInStock(Boolean inStock)
void
setName(String name)
void
setPrice(Double price)
Deprecated.void
setPriceRange(Price priceRange)
void
setSku(String sku)
-
-
-
Method Detail
-
setId
public void setId(String id)
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceVariant
-
setDescription
public void setDescription(String description)
-
setSku
public void setSku(String sku)
-
getCurrency
public String getCurrency()
- Specified by:
getCurrency
in interfaceVariant
- Returns:
- The price currency.
-
setCurrency
@Deprecated public void setCurrency(String currency)
Deprecated.
-
setPrice
@Deprecated public void setPrice(Double price)
Deprecated.
-
getFormattedPrice
public String getFormattedPrice()
- Specified by:
getFormattedPrice
in interfaceVariant
- Returns:
- The formatted price including the currency.
-
setFormattedPrice
@Deprecated public void setFormattedPrice(String formattedPrice)
Deprecated.
-
getPriceRange
public Price getPriceRange()
- Specified by:
getPriceRange
in interfaceVariant
-
setPriceRange
public void setPriceRange(Price priceRange)
-
getInStock
public Boolean getInStock()
- Specified by:
getInStock
in interfaceVariant
-
setInStock
public void setInStock(Boolean inStock)
-
getVariantAttributes
public Map<String,Integer> getVariantAttributes()
- Specified by:
getVariantAttributes
in interfaceVariant
-
setColor
public void setColor(Integer color)
-
-