Class DistrictModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class DistrictModel
    extends C2LItemModel
    Generated model class for type District 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
      • _CITY2DISTRICTSRELATION

        public static final java.lang.String _CITY2DISTRICTSRELATION
        Generated relation code constant for relation City2DistrictsRelation defining source attribute city in extension chineseaddressservices.
        See Also:
        Constant Field Values
      • CITYPOS

        public static final java.lang.String CITYPOS
        Generated constant - Attribute key of District.cityPOS attribute defined at extension chineseaddressservices.
        See Also:
        Constant Field Values
      • CITY

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

      • DistrictModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public DistrictModel​(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 District at extension chineseaddressservices
      • DistrictModel

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

      • getCity

        @Accessor(qualifier="city",
                  type=GETTER)
        public CityModel getCity()
        Generated method - Getter of the District.city attribute defined at extension chineseaddressservices.
        Returns:
        the city
      • setCity

        @Accessor(qualifier="city",
                  type=SETTER)
        public void setCity​(CityModel value)
        Generated method - Setter of District.city attribute defined at extension chineseaddressservices.
        Parameters:
        value - the city