Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * BroadleafCommerce Framework
   * %%
   * Copyright (C) 2009 - 2013 Broadleaf Commerce
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * 
  *       http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package org.broadleafcommerce.core.catalog.domain;
 
 

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(s):
bpolster.
 
 public interface ProductOptionValue extends Serializable {
    
    
Returns unique identifier of the product option value.

Returns:
 
     public Long getId();

    
Sets the unique identifier of the product option value.

Parameters:
id
 
     public void setId(Long id);

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

Parameters:
 
     public String getAttributeValue();

    
Sets the option value. (e.g. "red")

Parameters:
attributeValue
 
     public void setAttributeValue(String attributeValue);

    
Returns the order that the option value should be displayed in.

Returns:
 
     public Long getDisplayOrder();

    
Sets the display order.

Parameters:
order
 
     public void setDisplayOrder(Long order);

    
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
 
     public 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. 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
 
     public void setPriceAdjustment(Money priceAdjustment);
    
    
Returns the associated ProductOption

Returns:
    public ProductOption getProductOption();

    
Sets the associated product option.

Parameters:
productOption
    public void setProductOption(ProductOption productOption);
    
New to GrepCode? Check out our FAQ X