@Entity public class ProductOptionImpl extends Object implements ProductOption, AdminMainEntity
| Modifier and Type | Field and Description |
|---|---|
protected List<ProductOptionValue> |
allowedValues |
protected String |
attributeName |
protected Integer |
displayOrder |
protected String |
errorCode |
protected String |
errorMessage |
protected Long |
id |
protected String |
label |
protected List<ProductOptionXref> |
products |
protected Boolean |
required |
protected String |
type |
protected String |
validationString |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
ProductOptionImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<ProductOptionValue> |
getAllowedValues()
Gets the available values that a user can select for this ProductOption.
|
String |
getAttributeName()
Gets the attribute name for where the ProductOptionValue selected for
this ProductOption is stored in the OrderItemAttributes for the
OrderItem
|
Integer |
getDisplayOrder()
Gets the display order of this option in relation to the other
ProductOptions |
String |
getErrorCode() |
String |
getErrorMessage() |
Long |
getId()
Returns unique identifier of the product option.
|
String |
getLabel()
The label to show to the user when selecting from the available
ProductOptionValues. |
String |
getMainEntityName() |
ProductOptionValidationStrategyType |
getProductOptionValidationStrategyType() |
ProductOptionValidationType |
getProductOptionValidationType() |
List<Product> |
getProducts()
Gets all the Products associated with this ProductOption
|
List<ProductOptionXref> |
getProductXrefs() |
Boolean |
getRequired() |
ProductOptionType |
getType()
Returns the option type.
|
Boolean |
getUseInSkuGeneration() |
String |
getValidationString() |
void |
setAllowedValues(List<ProductOptionValue> allowedValues)
Set the allowed values for this ProductOption
|
void |
setAttributeName(String attributeName)
Sets the attribute name that will be used in storing the selected
ProductOptionValue for this ProductOption
|
void |
setDisplayOrder(Integer displayOrder)
Gets the display order of this option in relation to the other
ProductOptions |
void |
setErrorCode(String errorCode) |
void |
setErrorMessage(String errorMessage) |
void |
setId(Long id)
Sets the unique identifier of the product option.
|
void |
setLabel(String label)
Sets the label to show the user when selecting from the available
ProductOptionValues |
void |
setProductOptionValidationStrategyType(ProductOptionValidationStrategyType productOptionValidationStrategyType) |
void |
setProductOptionValidationType(ProductOptionValidationType productOptionValidationType) |
void |
setProducts(List<Product> products)
Set the Products to associate with this ProductOption
|
void |
setProductXrefs(List<ProductOptionXref> xrefs) |
void |
setRequired(Boolean required)
Sets whether or not
|
void |
setType(ProductOptionType type)
Sets the option type.
|
void |
setUseInSkuGeneration(Boolean useInSkuGeneration) |
void |
setValidationString(String validationString) |
protected Long id
protected String type
protected String attributeName
protected String label
protected Boolean required
protected Integer displayOrder
protected String validationString
protected String errorCode
protected String errorMessage
protected List<ProductOptionValue> allowedValues
protected List<ProductOptionXref> products
public Long getId()
ProductOptiongetId in interface ProductOptionpublic void setId(Long id)
ProductOptionsetId in interface ProductOptionpublic ProductOptionType getType()
ProductOptiongetType in interface ProductOptionpublic void setType(ProductOptionType type)
ProductOptionsetType in interface ProductOptionpublic String getAttributeName()
ProductOptiongetAttributeName in interface ProductOptionOrderItemAttribute}, {@link OrderItem}public void setAttributeName(String attributeName)
ProductOptionsetAttributeName in interface ProductOptionattributeName - - the name of the OrderItemAttribute to store the selected
ProductOptionValue in the Order domainpublic String getLabel()
ProductOptionProductOptionValues. This might be "Color" or "Size"getLabel in interface ProductOptionpublic void setLabel(String label)
ProductOptionProductOptionValuessetLabel in interface ProductOptionpublic Boolean getRequired()
getRequired in interface ProductOptionpublic void setRequired(Boolean required)
ProductOptionsetRequired in interface ProductOptionpublic Integer getDisplayOrder()
ProductOptionProductOptionsgetDisplayOrder in interface ProductOptionpublic void setDisplayOrder(Integer displayOrder)
ProductOptionProductOptionssetDisplayOrder in interface ProductOptionpublic List<ProductOptionXref> getProductXrefs()
getProductXrefs in interface ProductOptionpublic void setProductXrefs(List<ProductOptionXref> xrefs)
setProductXrefs in interface ProductOptionpublic List<Product> getProducts()
ProductOptiongetProducts in interface ProductOptionpublic void setProducts(List<Product> products)
ProductOptionsetProducts in interface ProductOptionpublic List<ProductOptionValue> getAllowedValues()
ProductOptionProductOption.getAttributeName()getAllowedValues in interface ProductOptionpublic void setAllowedValues(List<ProductOptionValue> allowedValues)
ProductOptionsetAllowedValues in interface ProductOptionpublic Boolean getUseInSkuGeneration()
getUseInSkuGeneration in interface ProductOptionpublic void setUseInSkuGeneration(Boolean useInSkuGeneration)
setUseInSkuGeneration in interface ProductOptionpublic ProductOptionValidationStrategyType getProductOptionValidationStrategyType()
getProductOptionValidationStrategyType in interface ProductOptionpublic void setProductOptionValidationStrategyType(ProductOptionValidationStrategyType productOptionValidationStrategyType)
setProductOptionValidationStrategyType in interface ProductOptionpublic ProductOptionValidationType getProductOptionValidationType()
getProductOptionValidationType in interface ProductOptionpublic void setProductOptionValidationType(ProductOptionValidationType productOptionValidationType)
setProductOptionValidationType in interface ProductOptionpublic String getValidationString()
getValidationString in interface ProductOptionpublic void setValidationString(String validationString)
setValidationString in interface ProductOptionpublic String getErrorCode()
getErrorCode in interface ProductOptionpublic void setErrorCode(String errorCode)
setErrorCode in interface ProductOptionpublic String getErrorMessage()
getErrorMessage in interface ProductOptionpublic void setErrorMessage(String errorMessage)
setErrorMessage in interface ProductOptionpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2015. All Rights Reserved.