Class CityModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class CityModel
    extends C2LItemModel
    Generated model class for type City first defined at extension chineseaddressservices.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String _REGION2CITIESRELATION
        Generated relation code constant for relation Region2CitiesRelation defining source attribute region in extension chineseaddressservices.
        See Also:
        Constant Field Values
      • REGIONPOS

        public static final java.lang.String REGIONPOS
        Generated constant - Attribute key of City.regionPOS attribute defined at extension chineseaddressservices.
        See Also:
        Constant Field Values
      • REGION

        public static final java.lang.String REGION
        Generated constant - Attribute key of City.region attribute defined at extension chineseaddressservices.
        See Also:
        Constant Field Values
      • DISTRICTS

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

      • CityModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CityModel​(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:
        _isocode - initial attribute declared by type City at extension chineseaddressservices
      • CityModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CityModel​(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:
        _isocode - initial attribute declared by type City at extension chineseaddressservices
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getDistricts

        @Accessor(qualifier="districts",
                  type=GETTER)
        public java.util.List<DistrictModel> getDistricts()
        Generated method - Getter of the City.districts attribute defined at extension chineseaddressservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the districts
      • getRegion

        @Accessor(qualifier="region",
                  type=GETTER)
        public RegionModel getRegion()
        Generated method - Getter of the City.region attribute defined at extension chineseaddressservices.
        Returns:
        the region
      • setDistricts

        @Accessor(qualifier="districts",
                  type=SETTER)
        public void setDistricts​(java.util.List<DistrictModel> value)
        Generated method - Setter of City.districts attribute defined at extension chineseaddressservices.
        Parameters:
        value - the districts
      • setRegion

        @Accessor(qualifier="region",
                  type=SETTER)
        public void setRegion​(RegionModel value)
        Generated method - Setter of City.region attribute defined at extension chineseaddressservices.
        Parameters:
        value - the region