Class WeightWrapper

java.lang.Object
com.broadleafcommerce.rest.api.wrapper.WeightWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Weight>, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Weight>

public class WeightWrapper extends Object implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Weight>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Weight>
This is a JAXB wrapper around Weight

User: Kelly Tisdell Date: 4/10/12

See Also:
  • Field Details

    • weight

      protected BigDecimal weight
    • unitOfMeasure

      protected String unitOfMeasure
  • Constructor Details

    • WeightWrapper

      public WeightWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Weight model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Weight>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Weight model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Weight>
    • getWeight

      public BigDecimal getWeight()
      Returns:
      the weight
    • setWeight

      public void setWeight(BigDecimal weight)
      Parameters:
      weight - the weight to set
    • getUnitOfMeasure

      public String getUnitOfMeasure()
      Returns:
      the unitOfMeasure
    • setUnitOfMeasure

      public void setUnitOfMeasure(String unitOfMeasure)
      Parameters:
      unitOfMeasure - the unitOfMeasure to set
    • unwrap

      public org.broadleafcommerce.core.catalog.domain.Weight unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
      Specified by:
      unwrap in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Weight>