Class ElectronicsColorVariantProductModel

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

      • _TYPECODE

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

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

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

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

      • getColor

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

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