Class ElectronicsColorVariantProductModel

All Implemented Interfaces:
Serializable

public class ElectronicsColorVariantProductModel extends VariantProductModel
Generated model class for type ElectronicsColorVariantProduct first defined at extension yacceleratorcore.

Electronics color variant type that contains additional attribute describing variant color.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String COLOR
      Generated constant - Attribute key of ElectronicsColorVariantProduct.color attribute defined at extension yacceleratorcore.
      See Also:
  • Constructor Details

    • ElectronicsColorVariantProductModel

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

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

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

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

    • getColor

      @Accessor(qualifier="color", type=GETTER) public String getColor()
      Generated method - Getter of the ElectronicsColorVariantProduct.color attribute defined at extension yacceleratorcore.
      Returns:
      the color - Color of the product.
    • getColor

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

      @Accessor(qualifier="color", type=SETTER) public void setColor(String value)
      Generated method - Setter of ElectronicsColorVariantProduct.color attribute defined at extension yacceleratorcore.
      Parameters:
      value - the color - Color of the product.
    • setColor

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