Class ProductReferenceModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductReferenceModel
    extends ItemModel
    Generated model class for type ProductReference first defined at extension catalog.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _PRODUCTREFERENCERELATION
      Generated relation code constant for relation ProductReferenceRelation defining source attribute source in extension catalog.
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String ACTIVE
      Generated constant - Attribute key of ProductReference.active attribute defined at extension catalog.
      static java.lang.String DESCRIPTION
      Generated constant - Attribute key of ProductReference.description attribute defined at extension catalog.
      static java.lang.String ICON
      Generated constant - Attribute key of ProductReference.icon attribute defined at extension catalog.
      static java.lang.String PRESELECTED
      Generated constant - Attribute key of ProductReference.preselected attribute defined at extension catalog.
      static java.lang.String QUALIFIER
      Generated constant - Attribute key of ProductReference.qualifier attribute defined at extension catalog.
      static java.lang.String QUANTITY
      Generated constant - Attribute key of ProductReference.quantity attribute defined at extension catalog.
      static java.lang.String REFERENCETYPE
      Generated constant - Attribute key of ProductReference.referenceType attribute defined at extension catalog.
      static java.lang.String SOURCE
      Generated constant - Attribute key of ProductReference.source attribute defined at extension catalog.
      static java.lang.String SOURCEPOS
      Generated constant - Attribute key of ProductReference.sourcePOS attribute defined at extension catalog.
      static java.lang.String TARGET
      Generated constant - Attribute key of ProductReference.target attribute defined at extension catalog.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProductReferenceModel()
      Generated constructor - Default constructor for generic creation.
      ProductReferenceModel​(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      ProductReferenceModel​(java.lang.Boolean _active, ItemModel _owner, java.lang.Boolean _preselected, ProductModel _source, ProductModel _target)
      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
      ProductReferenceModel​(java.lang.Boolean _active, java.lang.Boolean _preselected, ProductModel _source, ProductModel _target)
      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
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String _PRODUCTREFERENCERELATION
        Generated relation code constant for relation ProductReferenceRelation defining source attribute source in extension catalog.
        See Also:
        Constant Field Values
      • QUALIFIER

        public static final java.lang.String QUALIFIER
        Generated constant - Attribute key of ProductReference.qualifier attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • TARGET

        public static final java.lang.String TARGET
        Generated constant - Attribute key of ProductReference.target attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • QUANTITY

        public static final java.lang.String QUANTITY
        Generated constant - Attribute key of ProductReference.quantity attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • REFERENCETYPE

        public static final java.lang.String REFERENCETYPE
        Generated constant - Attribute key of ProductReference.referenceType attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • ICON

        public static final java.lang.String ICON
        Generated constant - Attribute key of ProductReference.icon attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Generated constant - Attribute key of ProductReference.description attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • PRESELECTED

        public static final java.lang.String PRESELECTED
        Generated constant - Attribute key of ProductReference.preselected attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • ACTIVE

        public static final java.lang.String ACTIVE
        Generated constant - Attribute key of ProductReference.active attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • SOURCEPOS

        public static final java.lang.String SOURCEPOS
        Generated constant - Attribute key of ProductReference.sourcePOS attribute defined at extension catalog.
        See Also:
        Constant Field Values
      • SOURCE

        public static final java.lang.String SOURCE
        Generated constant - Attribute key of ProductReference.source attribute defined at extension catalog.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductReferenceModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductReferenceModel​(java.lang.Boolean _active,
                                     java.lang.Boolean _preselected,
                                     ProductModel _source,
                                     ProductModel _target)
        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:
        _active - initial attribute declared by type ProductReference at extension catalog
        _preselected - initial attribute declared by type ProductReference at extension catalog
        _source - initial attribute declared by type ProductReference at extension catalog
        _target - initial attribute declared by type ProductReference at extension catalog
      • ProductReferenceModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductReferenceModel​(java.lang.Boolean _active,
                                     ItemModel _owner,
                                     java.lang.Boolean _preselected,
                                     ProductModel _source,
                                     ProductModel _target)
        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:
        _active - initial attribute declared by type ProductReference at extension catalog
        _owner - initial attribute declared by type Item at extension core
        _preselected - initial attribute declared by type ProductReference at extension catalog
        _source - initial attribute declared by type ProductReference at extension catalog
        _target - initial attribute declared by type ProductReference at extension catalog
    • Method Detail

      • getActive

        @Accessor(qualifier="active",
                  type=GETTER)
        public java.lang.Boolean getActive()
        Generated method - Getter of the ProductReference.active attribute defined at extension catalog.
        Returns:
        the active
      • getDescription

        @Accessor(qualifier="description",
                  type=GETTER)
        public java.lang.String getDescription()
        Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
        Returns:
        the description
      • getDescription

        @Accessor(qualifier="description",
                  type=GETTER)
        public java.lang.String getDescription​(java.util.Locale loc)
        Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
        Parameters:
        loc - the value localization key
        Returns:
        the description
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getIcon

        @Accessor(qualifier="icon",
                  type=GETTER)
        public MediaModel getIcon()
        Generated method - Getter of the ProductReference.icon attribute defined at extension catalog.
        Returns:
        the icon
      • getPreselected

        @Accessor(qualifier="preselected",
                  type=GETTER)
        public java.lang.Boolean getPreselected()
        Generated method - Getter of the ProductReference.preselected attribute defined at extension catalog.
        Returns:
        the preselected
      • getQualifier

        @Accessor(qualifier="qualifier",
                  type=GETTER)
        public java.lang.String getQualifier()
        Generated method - Getter of the ProductReference.qualifier attribute defined at extension catalog.
        Returns:
        the qualifier - Qualifier
      • getQuantity

        @Accessor(qualifier="quantity",
                  type=GETTER)
        public java.lang.Integer getQuantity()
        Generated method - Getter of the ProductReference.quantity attribute defined at extension catalog.
        Returns:
        the quantity - Quantity
      • getSource

        @Accessor(qualifier="source",
                  type=GETTER)
        public ProductModel getSource()
        Generated method - Getter of the ProductReference.source attribute defined at extension catalog.
        Returns:
        the source
      • getTarget

        @Accessor(qualifier="target",
                  type=GETTER)
        public ProductModel getTarget()
        Generated method - Getter of the ProductReference.target attribute defined at extension catalog.
        Returns:
        the target - Target
      • setActive

        @Accessor(qualifier="active",
                  type=SETTER)
        public void setActive​(java.lang.Boolean value)
        Generated method - Setter of ProductReference.active attribute defined at extension catalog.
        Parameters:
        value - the active
      • setDescription

        @Accessor(qualifier="description",
                  type=SETTER)
        public void setDescription​(java.lang.String value)
        Generated method - Setter of ProductReference.description attribute defined at extension catalog.
        Parameters:
        value - the description
      • setDescription

        @Accessor(qualifier="description",
                  type=SETTER)
        public void setDescription​(java.lang.String value,
                                   java.util.Locale loc)
        Generated method - Setter of ProductReference.description attribute defined at extension catalog.
        Parameters:
        value - the description
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setIcon

        @Accessor(qualifier="icon",
                  type=SETTER)
        public void setIcon​(MediaModel value)
        Generated method - Setter of ProductReference.icon attribute defined at extension catalog.
        Parameters:
        value - the icon
      • setPreselected

        @Accessor(qualifier="preselected",
                  type=SETTER)
        public void setPreselected​(java.lang.Boolean value)
        Generated method - Setter of ProductReference.preselected attribute defined at extension catalog.
        Parameters:
        value - the preselected
      • setQualifier

        @Accessor(qualifier="qualifier",
                  type=SETTER)
        public void setQualifier​(java.lang.String value)
        Generated method - Setter of ProductReference.qualifier attribute defined at extension catalog.
        Parameters:
        value - the qualifier - Qualifier
      • setQuantity

        @Accessor(qualifier="quantity",
                  type=SETTER)
        public void setQuantity​(java.lang.Integer value)
        Generated method - Setter of ProductReference.quantity attribute defined at extension catalog.
        Parameters:
        value - the quantity - Quantity
      • setReferenceType

        @Accessor(qualifier="referenceType",
                  type=SETTER)
        public void setReferenceType​(ProductReferenceTypeEnum value)
        Generated method - Setter of ProductReference.referenceType attribute defined at extension catalog.
        Parameters:
        value - the referenceType
      • setSource

        @Accessor(qualifier="source",
                  type=SETTER)
        public void setSource​(ProductModel value)
        Generated method - Initial setter of ProductReference.source attribute defined at extension catalog. Can only be used at creation of model - before first save.
        Parameters:
        value - the source
      • setTarget

        @Accessor(qualifier="target",
                  type=SETTER)
        public void setTarget​(ProductModel value)
        Generated method - Setter of ProductReference.target attribute defined at extension catalog.
        Parameters:
        value - the target - Target