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