Class RegionModel

All Implemented Interfaces:
Serializable

public class RegionModel extends C2LItemModel
Generated model class for type Region first defined at extension core.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _COUNTRY2REGIONRELATION

      public static final String _COUNTRY2REGIONRELATION
      Generated relation code constant for relation Country2RegionRelation defining source attribute country in extension core.
      See Also:
    • COUNTRY

      public static final String COUNTRY
      Generated constant - Attribute key of Region.country attribute defined at extension core.
      See Also:
    • ISOCODESHORT

      public static final String ISOCODESHORT
      Generated constant - Attribute key of Region.isocodeShort attribute defined at extension commerceservices.
      See Also:
    • CITIES

      public static final String CITIES
      Generated constant - Attribute key of Region.cities attribute defined at extension chineseaddressservices.
      See Also:
  • Constructor Details

    • RegionModel

      public RegionModel()
      Generated constructor - Default constructor for generic creation.
    • RegionModel

      public RegionModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • RegionModel

      @Deprecated(since="4.1.1", forRemoval=true) public RegionModel(CountryModel _country, String _isocode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _country - initial attribute declared by type Region at extension core
      _isocode - initial attribute declared by type Region at extension core
    • RegionModel

      @Deprecated(since="4.1.1", forRemoval=true) public RegionModel(CountryModel _country, String _isocode, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _country - initial attribute declared by type Region at extension core
      _isocode - initial attribute declared by type Region at extension core
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCities

      @Accessor(qualifier="cities", type=GETTER) public List<CityModel> getCities()
      Generated method - Getter of the Region.cities attribute defined at extension chineseaddressservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the cities
    • getCountry

      @Accessor(qualifier="country", type=GETTER) public CountryModel getCountry()
      Generated method - Getter of the Region.country attribute defined at extension core.
      Returns:
      the country
    • getIsocodeShort

      @Accessor(qualifier="isocodeShort", type=GETTER) public String getIsocodeShort()
      Generated method - Getter of the Region.isocodeShort attribute defined at extension commerceservices.
      Returns:
      the isocodeShort - 2 character isocode
    • setCities

      @Accessor(qualifier="cities", type=SETTER) public void setCities(List<CityModel> value)
      Generated method - Setter of Region.cities attribute defined at extension chineseaddressservices.
      Parameters:
      value - the cities
    • setCountry

      @Accessor(qualifier="country", type=SETTER) public void setCountry(CountryModel value)
      Generated method - Setter of Region.country attribute defined at extension core.
      Parameters:
      value - the country
    • setIsocodeShort

      @Accessor(qualifier="isocodeShort", type=SETTER) public void setIsocodeShort(String value)
      Generated method - Setter of Region.isocodeShort attribute defined at extension commerceservices.
      Parameters:
      value - the isocodeShort - 2 character isocode