org.broadleafcommerce.core.catalog.domain
Class ProductDimension

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.ProductDimension
All Implemented Interfaces:
java.io.Serializable

@Embeddable
public class ProductDimension
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String container
           
protected  java.math.BigDecimal depth
           
protected  java.lang.String dimensionUnitOfMeasure
           
protected  java.math.BigDecimal girth
           
protected  java.math.BigDecimal height
           
protected  java.lang.String size
           
protected  java.math.BigDecimal width
           
 
Constructor Summary
ProductDimension()
           
 
Method Summary
 ContainerShapeType getContainer()
           
 java.math.BigDecimal getDepth()
           
 java.lang.String getDimensionString()
          Returns the product dimensions as a String (assumes measurements are in inches)
 DimensionUnitOfMeasureType getDimensionUnitOfMeasure()
           
 java.math.BigDecimal getGirth()
           
 java.math.BigDecimal getHeight()
           
 ContainerSizeType getSize()
           
 java.math.BigDecimal getWidth()
           
 void setContainer(ContainerShapeType container)
           
 void setDepth(java.math.BigDecimal depth)
           
 void setDimensionUnitOfMeasure(DimensionUnitOfMeasureType dimensionUnitOfMeasure)
           
 void setGirth(java.math.BigDecimal girth)
           
 void setHeight(java.math.BigDecimal height)
           
 void setSize(ContainerSizeType size)
           
 void setWidth(java.math.BigDecimal width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected java.math.BigDecimal width

height

protected java.math.BigDecimal height

depth

protected java.math.BigDecimal depth

girth

protected java.math.BigDecimal girth

size

protected java.lang.String size

container

protected java.lang.String container

dimensionUnitOfMeasure

protected java.lang.String dimensionUnitOfMeasure
Constructor Detail

ProductDimension

public ProductDimension()
Method Detail

getWidth

public java.math.BigDecimal getWidth()

setWidth

public void setWidth(java.math.BigDecimal width)

getHeight

public java.math.BigDecimal getHeight()

setHeight

public void setHeight(java.math.BigDecimal height)

getDepth

public java.math.BigDecimal getDepth()

setDepth

public void setDepth(java.math.BigDecimal depth)

getDimensionString

public java.lang.String getDimensionString()
Returns the product dimensions as a String (assumes measurements are in inches)

Returns:
a String value of the product dimensions

getGirth

public java.math.BigDecimal getGirth()

setGirth

public void setGirth(java.math.BigDecimal girth)

getSize

public ContainerSizeType getSize()

setSize

public void setSize(ContainerSizeType size)

getContainer

public ContainerShapeType getContainer()

setContainer

public void setContainer(ContainerShapeType container)

getDimensionUnitOfMeasure

public DimensionUnitOfMeasureType getDimensionUnitOfMeasure()

setDimensionUnitOfMeasure

public void setDimensionUnitOfMeasure(DimensionUnitOfMeasureType dimensionUnitOfMeasure)


Copyright © 2012. All Rights Reserved.