org.broadleafcommerce.core.web.api.wrapper
Class AddressWrapper

java.lang.Object
  extended by org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
      extended by org.broadleafcommerce.core.web.api.wrapper.AddressWrapper
All Implemented Interfaces:
APIUnwrapper<Address>, APIWrapper<Address>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class AddressWrapper
extends BaseWrapper
implements APIWrapper<Address>, APIUnwrapper<Address>

This is a JAXB wrapper around Address. User: Elbert Bautista Date: 4/10/12


Field Summary
protected  String addressLine1
           
protected  String addressLine2
           
protected  String city
           
protected  String companyName
           
protected  CountryWrapper country
           
protected  String firstName
           
protected  Long id
           
protected  Boolean isBusiness
           
protected  Boolean isDefault
           
protected  String lastName
           
protected  String postalCode
           
protected  String primaryPhone
           
protected  String secondaryPhone
           
protected  StateWrapper state
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
AddressWrapper()
           
 
Method Summary
 Address unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
           
 void wrap(Address model, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

firstName

protected String firstName

lastName

protected String lastName

addressLine1

protected String addressLine1

addressLine2

protected String addressLine2

city

protected String city

state

protected StateWrapper state

country

protected CountryWrapper country

postalCode

protected String postalCode

primaryPhone

protected String primaryPhone

secondaryPhone

protected String secondaryPhone

companyName

protected String companyName

isBusiness

protected Boolean isBusiness

isDefault

protected Boolean isDefault
Constructor Detail

AddressWrapper

public AddressWrapper()
Method Detail

wrap

public void wrap(Address model,
                 javax.servlet.http.HttpServletRequest request)
Specified by:
wrap in interface APIWrapper<Address>

unwrap

public Address unwrap(javax.servlet.http.HttpServletRequest request,
                      org.springframework.context.ApplicationContext appContext)
Specified by:
unwrap in interface APIUnwrapper<Address>


Copyright © 2013. All Rights Reserved.