public class CountryWrapper extends BaseWrapper implements APIWrapper<Country>, APIUnwrapper<Country>
| Modifier and Type | Field and Description |
|---|---|
protected String |
abbreviation |
protected String |
name |
context| Constructor and Description |
|---|
CountryWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation() |
String |
getName() |
void |
setAbbreviation(String abbreviation) |
void |
setName(String name) |
Country |
unwrap(javax.servlet.http.HttpServletRequest request,
org.springframework.context.ApplicationContext appContext) |
void |
wrapDetails(Country model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(Country model,
javax.servlet.http.HttpServletRequest request) |
createElementWrappers, setApplicationContextpublic void wrapDetails(Country model, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Country>public void wrapSummary(Country model, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Country>public Country unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
unwrap in interface APIUnwrapper<Country>public String getName()
public void setName(String name)
name - the name to setpublic String getAbbreviation()
public void setAbbreviation(String abbreviation)
abbreviation - the abbreviation to setCopyright © 2015. All Rights Reserved.