Class CityModel

All Implemented Interfaces:
Serializable

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

    • _TYPECODE

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

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

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

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

      public static final String DISTRICTS
      Generated constant - Attribute key of City.districts attribute defined at extension chineseaddressservices.
      See Also:
  • Constructor Details

    • 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(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(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 Details

    • getDistricts

      @Accessor(qualifier="districts", type=GETTER) public 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(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