Class ISOCountryWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.ISOCountryWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.common.i18n.domain.ISOCountry>, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.common.i18n.domain.ISOCountry>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ISOCountryWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.common.i18n.domain.ISOCountry>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.common.i18n.domain.ISOCountry>
This is a JAXB wrapper around ISOCountry.
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     

    Fields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    setAlpha2(String alpha2)
     
    void
     
    org.broadleafcommerce.common.i18n.domain.ISOCountry
    unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
     
    void
    wrapDetails(org.broadleafcommerce.common.i18n.domain.ISOCountry model, jakarta.servlet.http.HttpServletRequest request)
     
    void
    wrapSummary(org.broadleafcommerce.common.i18n.domain.ISOCountry model, jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper

    createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      protected String name
    • alpha2

      protected String alpha2
  • Constructor Details

    • ISOCountryWrapper

      public ISOCountryWrapper()
  • Method Details

    • wrapDetails

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

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

      public org.broadleafcommerce.common.i18n.domain.ISOCountry unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext)
      Specified by:
      unwrap in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.common.i18n.domain.ISOCountry>
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getAlpha2

      public String getAlpha2()
      Returns:
      the alpha2
    • setAlpha2

      public void setAlpha2(String alpha2)
      Parameters:
      alpha2 - the alpha2 to set