Class ApparelSizeVariantProductModel

All Implemented Interfaces:
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:
  • Field Details

    • _TYPECODE

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

      public static final String SIZE
      Generated constant - Attribute key of ApparelSizeVariantProduct.size attribute defined at extension yacceleratorcore.
      See Also:
  • Constructor Details

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

    • getSize

      @Accessor(qualifier="size", type=GETTER) public 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 String getSize(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:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setSize

      @Accessor(qualifier="size", type=SETTER) public void setSize(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(String value, 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:
      IllegalArgumentException - if localization key cannot be mapped to data language