Class ApparelSizeVariantProductModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class ApparelSizeVariantProductModel
    extends ApparelStyleVariantProductModel
    Generated model class for type ApparelSizeVariantProduct first defined at extension yacceleratorcore.

    Apparel size variant type that contains additional attribute describing variant size.

    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String SIZE
        Generated constant - Attribute key of ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApparelSizeVariantProductModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ApparelSizeVariantProductModel​(ProductModel _baseProduct,
                                              CatalogVersionModel _catalogVersion,
                                              java.lang.String _code)
        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:
        _baseProduct - initial attribute declared by type VariantProduct at extension catalog
        _catalogVersion - initial attribute declared by type Product at extension catalog
        _code - initial attribute declared by type Product at extension core
      • ApparelSizeVariantProductModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ApparelSizeVariantProductModel​(ProductModel _baseProduct,
                                              CatalogVersionModel _catalogVersion,
                                              java.lang.String _code,
                                              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:
        _baseProduct - initial attribute declared by type VariantProduct at extension catalog
        _catalogVersion - initial attribute declared by type Product at extension catalog
        _code - initial attribute declared by type Product at extension core
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getSize

        @Accessor(qualifier="size",
                  type=GETTER)
        public java.lang.String getSize()
        Generated method - Getter of the ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
        Returns:
        the size - Size of the product.
      • getSize

        @Accessor(qualifier="size",
                  type=GETTER)
        public java.lang.String getSize​(java.util.Locale loc)
        Generated method - Getter of the ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
        Parameters:
        loc - the value localization key
        Returns:
        the size - Size of the product.
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setSize

        @Accessor(qualifier="size",
                  type=SETTER)
        public void setSize​(java.lang.String value)
        Generated method - Setter of ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
        Parameters:
        value - the size - Size of the product.
      • setSize

        @Accessor(qualifier="size",
                  type=SETTER)
        public void setSize​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
        Parameters:
        value - the size - Size of the product.
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language