Class DimensionWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.DimensionWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Dimension>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Dimension>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DimensionWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Dimension>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Dimension>
JAXB wrapper for Dimension
User: Kelly Tisdell
Date: 4/10/12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected BigDecimalprotected Stringprotected BigDecimalprotected BigDecimalprotected Stringprotected BigDecimalFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDepth()getGirth()getSize()getWidth()voidsetContainer(String container) voidsetDepth(BigDecimal depth) voidsetDimensionUnitOfMeasure(String dimensionUnitOfMeasure) voidsetGirth(BigDecimal girth) voidsetHeight(BigDecimal height) voidvoidsetWidth(BigDecimal width) org.broadleafcommerce.core.catalog.domain.Dimensionunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) voidwrapDetails(org.broadleafcommerce.core.catalog.domain.Dimension model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.catalog.domain.Dimension model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
width
-
height
-
depth
-
girth
-
container
-
size
-
dimensionUnitOfMeasure
-
-
Constructor Details
-
DimensionWrapper
public DimensionWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Dimension model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Dimension>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Dimension model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Dimension>
-
getWidth
- Returns:
- the width
-
setWidth
- Parameters:
width- the width to set
-
getHeight
- Returns:
- the height
-
setHeight
- Parameters:
height- the height to set
-
getDepth
- Returns:
- the depth
-
setDepth
- Parameters:
depth- the depth to set
-
getGirth
- Returns:
- the girth
-
setGirth
- Parameters:
girth- the girth to set
-
getContainer
- Returns:
- the container
-
setContainer
- Parameters:
container- the container to set
-
getSize
- Returns:
- the size
-
setSize
- Parameters:
size- the size to set
-
getDimensionUnitOfMeasure
- Returns:
- the dimensionUnitOfMeasure
-
setDimensionUnitOfMeasure
- Parameters:
dimensionUnitOfMeasure- the dimensionUnitOfMeasure to set
-
unwrap
public org.broadleafcommerce.core.catalog.domain.Dimension unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) - Specified by:
unwrapin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Dimension>
-