Class ProductOptionWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.ProductOptionWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.ProductOption>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ProductOptionWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.ProductOption>
This is a JAXB wrapper around Product.
User: Kelly Tisdell
Date: 4/10/12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ProductOptionValueWrapper>protected Characterprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Booleanprotected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()voidsetAllowedValues(List<ProductOptionValueWrapper> allowedValues) voidsetArchived(Character archived) voidsetAttributeName(String attributeName) voidvoidsetProductOptionType(String productOptionType) voidsetProductOptionValidationStrategyType(String productOptionValidationStrategyType) voidsetProductOptionValidationType(String productOptionValidationType) voidsetRequired(Boolean required) voidsetValidationString(String validationString) voidwrapDetails(org.broadleafcommerce.core.catalog.domain.ProductOption model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.catalog.domain.ProductOption model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
attributeName
-
label
-
required
-
productOptionType
-
productOptionValidationStrategyType
-
productOptionValidationType
-
allowedValues
-
validationString
-
archived
-
-
Constructor Details
-
ProductOptionWrapper
public ProductOptionWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.ProductOption model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.ProductOption>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.ProductOption model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.ProductOption>
-
getAttributeName
- Returns:
- the attributeName
-
setAttributeName
- Parameters:
attributeName- the attributeName to set
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label- the label to set
-
getRequired
- Returns:
- the required
-
setRequired
- Parameters:
required- the required to set
-
getProductOptionType
- Returns:
- the productOptionType
-
setProductOptionType
- Parameters:
productOptionType- the productOptionType to set
-
getProductOptionValidationStrategyType
- Returns:
- the productOptionValidationStrategyType
-
setProductOptionValidationStrategyType
- Parameters:
productOptionValidationStrategyType- the productOptionValidationStrategyType to set
-
getProductOptionValidationType
- Returns:
- the productOptionValidationType
-
setProductOptionValidationType
- Parameters:
productOptionValidationType- the productOptionValidationType to set
-
getAllowedValues
- Returns:
- the allowedValues
-
setAllowedValues
- Parameters:
allowedValues- the allowedValues to set
-
getValidationString
- Returns:
- the validationString
-
setValidationString
- Parameters:
validationString- the validationString to set
-
getArchived
-
setArchived
-