public class WeightWrapper extends Object implements APIWrapper<Weight>
| Modifier and Type | Field and Description |
|---|---|
protected String |
unitOfMeasure |
protected BigDecimal |
weight |
| Constructor and Description |
|---|
WeightWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getUnitOfMeasure() |
BigDecimal |
getWeight() |
void |
setUnitOfMeasure(String unitOfMeasure) |
void |
setWeight(BigDecimal weight) |
void |
wrapDetails(Weight model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(Weight model,
javax.servlet.http.HttpServletRequest request) |
protected BigDecimal weight
protected String unitOfMeasure
public void wrapDetails(Weight model, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Weight>public void wrapSummary(Weight model, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Weight>public BigDecimal getWeight()
public void setWeight(BigDecimal weight)
weight - the weight to setpublic String getUnitOfMeasure()
public void setUnitOfMeasure(String unitOfMeasure)
unitOfMeasure - the unitOfMeasure to setCopyright © 2015. All Rights Reserved.