Class RegionModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _COUNTRY2REGIONRELATION

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

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

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

        public static final java.lang.String CITIES
        Generated constant - Attribute key of Region.cities attribute defined at extension chineseaddressservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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,
                           java.lang.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,
                           java.lang.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 Detail

      • getCities

        @Accessor(qualifier="cities",
                  type=GETTER)
        public java.util.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
      • getIsocodeShort

        @Accessor(qualifier="isocodeShort",
                  type=GETTER)
        public java.lang.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​(java.util.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​(java.lang.String value)
        Generated method - Setter of Region.isocodeShort attribute defined at extension commerceservices.
        Parameters:
        value - the isocodeShort - 2 character isocode