Class ApparelStyleVariantProductModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApparelSizeVariantProductModel

public class ApparelStyleVariantProductModel extends VariantProductModel
Generated model class for type ApparelStyleVariantProduct first defined at extension yacceleratorcore.

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

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String STYLE
      Generated constant - Attribute key of ApparelStyleVariantProduct.style attribute defined at extension yacceleratorcore.
      See Also:
    • SWATCHCOLORS

      public static final String SWATCHCOLORS
      Generated constant - Attribute key of ApparelStyleVariantProduct.swatchColors attribute defined at extension yacceleratorcore.
      See Also:
  • Constructor Details

    • ApparelStyleVariantProductModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public ApparelStyleVariantProductModel(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
    • ApparelStyleVariantProductModel

      @Deprecated(since="4.1.1", forRemoval=true) public ApparelStyleVariantProductModel(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

    • getStyle

      @Accessor(qualifier="style", type=GETTER) public String getStyle()
      Generated method - Getter of the ApparelStyleVariantProduct.style attribute defined at extension yacceleratorcore.
      Returns:
      the style - Color/Pattern of the product.
    • getStyle

      @Accessor(qualifier="style", type=GETTER) public String getStyle(Locale loc)
      Generated method - Getter of the ApparelStyleVariantProduct.style attribute defined at extension yacceleratorcore.
      Parameters:
      loc - the value localization key
      Returns:
      the style - Color/Pattern of the product.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getSwatchColors

      @Accessor(qualifier="swatchColors", type=GETTER) public Set<SwatchColorEnum> getSwatchColors()
      Generated method - Getter of the ApparelStyleVariantProduct.swatchColors attribute defined at extension yacceleratorcore. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the swatchColors - A normalized color mapping to a standardized front-end navigable name.
    • setStyle

      @Accessor(qualifier="style", type=SETTER) public void setStyle(String value)
      Generated method - Setter of ApparelStyleVariantProduct.style attribute defined at extension yacceleratorcore.
      Parameters:
      value - the style - Color/Pattern of the product.
    • setStyle

      @Accessor(qualifier="style", type=SETTER) public void setStyle(String value, Locale loc)
      Generated method - Setter of ApparelStyleVariantProduct.style attribute defined at extension yacceleratorcore.
      Parameters:
      value - the style - Color/Pattern of the product.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setSwatchColors

      @Accessor(qualifier="swatchColors", type=SETTER) public void setSwatchColors(Set<SwatchColorEnum> value)
      Generated method - Setter of ApparelStyleVariantProduct.swatchColors attribute defined at extension yacceleratorcore.
      Parameters:
      value - the swatchColors - A normalized color mapping to a standardized front-end navigable name.