Class ProductConfigWrapper.ConfigOption

java.lang.Object
org.apache.ofbiz.product.config.ProductConfigWrapper.ConfigOption
All Implemented Interfaces:
Serializable
Enclosing class:
ProductConfigWrapper

public class ProductConfigWrapper.ConfigOption extends Object implements Serializable
The type Config option.
See Also:
  • Constructor Details

  • Method Details

    • getConfigOption

      public GenericValue getConfigOption()
      Gets config option.
      Returns:
      the config option
    • recalculateOptionPrice

      public void recalculateOptionPrice(ProductConfigWrapper pcw) throws Exception
      Recalculate option price.
      Parameters:
      pcw - the pcw
      Throws:
      Exception - the exception
    • getOptionName

      public String getOptionName()
      Gets option name.
      Returns:
      the option name
    • getOptionName

      public String getOptionName(Locale locale)
      Gets option name.
      Parameters:
      locale - the locale
      Returns:
      the option name
    • getDescription

      public String getDescription()
      Gets description.
      Returns:
      the description
    • getDescription

      public String getDescription(Locale locale)
      Gets description.
      Parameters:
      locale - the locale
      Returns:
      the description
    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • getComments

      public String getComments()
      Gets comments.
      Returns:
      the comments
    • setComments

      public void setComments(String comments)
      Sets comments.
      Parameters:
      comments - the comments
    • getListPrice

      public BigDecimal getListPrice()
      Gets list price.
      Returns:
      the list price
    • getPrice

      public BigDecimal getPrice()
      Gets price.
      Returns:
      the price
    • getOffsetListPrice

      public BigDecimal getOffsetListPrice()
      Gets offset list price.
      Returns:
      the offset list price
    • getOffsetPrice

      public BigDecimal getOffsetPrice()
      Gets offset price.
      Returns:
      the offset price
    • isDefault

      public boolean isDefault()
      Is default boolean.
      Returns:
      the boolean
    • hasVirtualComponent

      public boolean hasVirtualComponent()
      Has virtual component boolean.
      Returns:
      the boolean
    • isVirtualComponent

      public boolean isVirtualComponent(GenericValue component)
      Is virtual component boolean.
      Parameters:
      component - the component
      Returns:
      the boolean
    • isSelected

      public boolean isSelected()
      Is selected boolean.
      Returns:
      the boolean
    • setSelected

      public void setSelected(boolean newValue)
      Sets selected.
      Parameters:
      newValue - the new value
    • isAvailable

      public boolean isAvailable()
      Is available boolean.
      Returns:
      the boolean
    • setAvailable

      public void setAvailable(boolean newValue)
      Sets available.
      Parameters:
      newValue - the new value
    • getComponents

      public List<GenericValue> getComponents()
      Gets components.
      Returns:
      the components
    • getComponentOptions

      public Map<String,String> getComponentOptions()
      Gets component options.
      Returns:
      the component options
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object