Package org.apache.ofbiz.product.config
Class ProductConfigWrapper.ConfigOption
java.lang.Object
org.apache.ofbiz.product.config.ProductConfigWrapper.ConfigOption
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProductConfigWrapper
The type Config option.
- See Also:
-
Constructor Summary
ConstructorDescriptionConfigOption
(Delegator delegator, LocalDispatcher dispatcher, GenericValue option, ProductConfigWrapper.ConfigItem configItem, String catalogId, String webSiteId, String currencyUomId, GenericValue autoUserLogin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets comments.Gets component options.Gets components.Gets config option.Gets description.getDescription
(Locale locale) Gets description.getId()
Gets id.Gets list price.Gets offset list price.Gets offset price.Gets option name.getOptionName
(Locale locale) Gets option name.getPrice()
Gets price.int
hashCode()
boolean
Has virtual component boolean.boolean
Is available boolean.boolean
Is default boolean.boolean
Is selected boolean.boolean
isVirtualComponent
(GenericValue component) Is virtual component boolean.void
Recalculate option price.void
setAvailable
(boolean newValue) Sets available.void
setComments
(String comments) Sets comments.void
setSelected
(boolean newValue) Sets selected.toString()
-
Constructor Details
-
ConfigOption
public ConfigOption(Delegator delegator, LocalDispatcher dispatcher, GenericValue option, ProductConfigWrapper.ConfigItem configItem, String catalogId, String webSiteId, String currencyUomId, GenericValue autoUserLogin) throws Exception - Throws:
Exception
-
ConfigOption
-
-
Method Details
-
getConfigOption
Gets config option.- Returns:
- the config option
-
recalculateOptionPrice
Recalculate option price.- Parameters:
pcw
- the pcw- Throws:
Exception
- the exception
-
getOptionName
Gets option name.- Returns:
- the option name
-
getOptionName
Gets option name.- Parameters:
locale
- the locale- Returns:
- the option name
-
getDescription
Gets description.- Returns:
- the description
-
getDescription
Gets description.- Parameters:
locale
- the locale- Returns:
- the description
-
getId
Gets id.- Returns:
- the id
-
getComments
Gets comments.- Returns:
- the comments
-
setComments
Sets comments.- Parameters:
comments
- the comments
-
getListPrice
Gets list price.- Returns:
- the list price
-
getPrice
Gets price.- Returns:
- the price
-
getOffsetListPrice
Gets offset list price.- Returns:
- the offset list price
-
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
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
Gets components.- Returns:
- the components
-
getComponentOptions
Gets component options.- Returns:
- the component options
-
equals
-
hashCode
public int hashCode() -
toString
-