org.broadleafcommerce.core.catalog.domain
Interface ProductOptionValue

All Superinterfaces:
Serializable
All Known Implementing Classes:
ProductOptionValueImpl

public interface ProductOptionValue
extends Serializable

Stores the values for a given product option.

For example, a ProductOption of type "color" might have values of ("red","blue").

ProductOptionValues can also have a price adjustment associated with it which will be automatically added to the Sku retail price and sale price

Author:
bpolster.

Method Summary
 String getAttributeValue()
          Gets the option value.
 Long getDisplayOrder()
          Returns the order that the option value should be displayed in.
 Long getId()
          Returns unique identifier of the product option value.
 Money getPriceAdjustment()
          Gets the price adjustment associated with this value.
 ProductOption getProductOption()
          Returns the associated ProductOption
 void setAttributeValue(String attributeValue)
          Sets the option value.
 void setDisplayOrder(Long order)
          Sets the display order.
 void setId(Long id)
          Sets the unique identifier of the product option value.
 void setPriceAdjustment(Money priceAdjustment)
          Gets the price adjustment associated with this value.
 void setProductOption(ProductOption productOption)
          Sets the associated product option.
 

Method Detail

getId

Long getId()
Returns unique identifier of the product option value.

Returns:

setId

void setId(Long id)
Sets the unique identifier of the product option value.

Parameters:
id -

getAttributeValue

String getAttributeValue()
Gets the option value. (e.g. "red")

Parameters:
-

setAttributeValue

void setAttributeValue(String attributeValue)
Sets the option value. (e.g. "red")

Parameters:
attributeValue -

getDisplayOrder

Long getDisplayOrder()
Returns the order that the option value should be displayed in.

Returns:

setDisplayOrder

void setDisplayOrder(Long order)
Sets the display order.

Parameters:
order -

getPriceAdjustment

Money getPriceAdjustment()
Gets the price adjustment associated with this value. For instance, if this ProductOptionValue represented an extra-large shirt, that might be a $1 upcharge. This adjustments will be automatically added to the Sku retail price and sale price

Note: This could also be a negative value if you wanted to offer a particular ProductOptionValue at a discount

Returns:
the price adjustment for this

setPriceAdjustment

void setPriceAdjustment(Money priceAdjustment)
Gets the price adjustment associated with this value. For instance, if this ProductOptionValue represented an extra-large shirt, that might be a $1 upcharge. These adjustments will be automatically added to the Sku retail price and sale price. To offer this particular ProductOptionValue at a discount, you could also provide a negative value here

Parameters:
priceAdjustment -

getProductOption

ProductOption getProductOption()
Returns the associated ProductOption

Returns:

setProductOption

void setProductOption(ProductOption productOption)
Sets the associated product option.

Parameters:
productOption -


Copyright © 2013. All Rights Reserved.