Package org.apache.ofbiz.product.config
Class ProductConfigWrapper.ConfigOption
- java.lang.Object
-
- org.apache.ofbiz.product.config.ProductConfigWrapper.ConfigOption
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ProductConfigWrapper
public class ProductConfigWrapper.ConfigOption extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigOption(Delegator delegator, LocalDispatcher dispatcher, GenericValue option, ProductConfigWrapper.ConfigItem configItem, java.lang.String catalogId, java.lang.String webSiteId, java.lang.String currencyUomId, GenericValue autoUserLogin)
ConfigOption(ProductConfigWrapper.ConfigOption co)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getComments()
java.util.Map<java.lang.String,java.lang.String>
getComponentOptions()
java.util.List<GenericValue>
getComponents()
java.lang.String
getDescription()
java.lang.String
getDescription(java.util.Locale locale)
java.lang.String
getId()
java.math.BigDecimal
getListPrice()
java.math.BigDecimal
getOffsetListPrice()
java.math.BigDecimal
getOffsetPrice()
java.lang.String
getOptionName()
java.lang.String
getOptionName(java.util.Locale locale)
java.math.BigDecimal
getPrice()
int
hashCode()
boolean
hasVirtualComponent()
boolean
isAvailable()
boolean
isDefault()
boolean
isSelected()
boolean
isVirtualComponent(GenericValue component)
void
recalculateOptionPrice(ProductConfigWrapper pcw)
void
setAvailable(boolean newValue)
void
setComments(java.lang.String comments)
void
setSelected(boolean newValue)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ConfigOption
public ConfigOption(Delegator delegator, LocalDispatcher dispatcher, GenericValue option, ProductConfigWrapper.ConfigItem configItem, java.lang.String catalogId, java.lang.String webSiteId, java.lang.String currencyUomId, GenericValue autoUserLogin) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ConfigOption
public ConfigOption(ProductConfigWrapper.ConfigOption co)
-
-
Method Detail
-
recalculateOptionPrice
public void recalculateOptionPrice(ProductConfigWrapper pcw) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getOptionName
public java.lang.String getOptionName()
-
getOptionName
public java.lang.String getOptionName(java.util.Locale locale)
-
getDescription
public java.lang.String getDescription()
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
getId
public java.lang.String getId()
-
getComments
public java.lang.String getComments()
-
setComments
public void setComments(java.lang.String comments)
-
getListPrice
public java.math.BigDecimal getListPrice()
-
getPrice
public java.math.BigDecimal getPrice()
-
getOffsetListPrice
public java.math.BigDecimal getOffsetListPrice()
-
getOffsetPrice
public java.math.BigDecimal getOffsetPrice()
-
isDefault
public boolean isDefault()
-
hasVirtualComponent
public boolean hasVirtualComponent()
-
isVirtualComponent
public boolean isVirtualComponent(GenericValue component)
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean newValue)
-
isAvailable
public boolean isAvailable()
-
setAvailable
public void setAvailable(boolean newValue)
-
getComponents
public java.util.List<GenericValue> getComponents()
-
getComponentOptions
public java.util.Map<java.lang.String,java.lang.String> getComponentOptions()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-