Class ApparelStyleVariantProductModel

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

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

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

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

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

      • getStyle

        @Accessor(qualifier="style",
                  type=GETTER)
        public java.lang.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 java.lang.String getStyle​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getSwatchColors

        @Accessor(qualifier="swatchColors",
                  type=GETTER)
        public java.util.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​(java.lang.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​(java.lang.String value,
                             java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setSwatchColors

        @Accessor(qualifier="swatchColors",
                  type=SETTER)
        public void setSwatchColors​(java.util.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.