Class Product

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>, java.io.Serializable

    @Valid
    public class Product
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
    Data type represents a product definition
    Version:
    JEAF Release 1.6.x
    Author:
    JEAF Generator
    See Also:
    Serialized Form
    • Constructor Detail

      • Product

        protected Product()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • Product

        protected Product​(Product.Builder pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • builder

        public static Product.Builder builder()
        Method returns a new builder.
        Returns:
        Product.Builder New builder that can be used to create new Product objects.
      • builder

        public static Product.Builder builder​(Product pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        Product.Builder New builder that can be used to create new Product objects. The method never returns null.
      • builder

        public static Product.Builder builder​(java.lang.String pName,
                                              java.net.URL pLink,
                                              java.util.UUID pProductID,
                                              java.lang.String pDescription,
                                              java.lang.String pUri)
        Method creates a new builder and initializes it with the passed attributes.
      • getID

        public final com.anaptecs.jeaf.core.api.ServiceObjectID getID()
        Method returns the id of this object.
        Specified by:
        getID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
        Returns:
        ServiceObjectID ID of this object. Since an object must not have an id the method may also return null.
      • getUnversionedID

        public final com.anaptecs.jeaf.core.api.ServiceObjectID getUnversionedID()
        Method returns the unversioned object id of this object.
        Specified by:
        getUnversionedID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
        Returns:
        ServiceObjectID ID of this object. Since an object must not have an id the method may also return null.
      • getResellers

        public java.util.Set<Reseller> getResellers()
        Method returns association resellers.
        Returns:
        Set Value to which resellers is set. The method never returns null and the returned collection is modifiable.
      • addToResellers

        public void addToResellers​(Reseller pResellers)
        Method adds the passed object to resellers.
        Parameters:
        pResellers - Object that should be added to resellers. The parameter must not be null.
      • addToResellers

        public void addToResellers​(java.util.Collection<Reseller> pResellers)
        Method adds all passed objects to resellers.
        Parameters:
        pResellers - Collection with all objects that should be added to resellers. The parameter must not be null.
      • removeFromResellers

        public void removeFromResellers​(Reseller pResellers)
        Method removes the passed object from resellers.
        Parameters:
        pResellers - Object that should be removed from resellers. The parameter must not be null.
      • clearResellers

        public void clearResellers()
        Method removes all objects from resellers.
      • getName

        public java.lang.String getName()
        Method returns attribute name.
        Returns:
        String Value to which name is set.
      • setName

        public void setName​(java.lang.String pName)
        Method sets attribute name.
        Parameters:
        pName - Value to which name should be set.
      • getImage

        public byte[] getImage()
        Method returns attribute image.
        Image describing the product.
        Returns:
        byte Value to which image is set.
      • setImage

        public void setImage​(byte[] pImage)
        Method sets attribute image.
        Image describing the product.
        Parameters:
        pImage - Value to which image should be set.
      • getLink

        public java.net.URL getLink()
        Method returns attribute link.
        Returns:
        URL Value to which link is set.
      • setLink

        public void setLink​(java.net.URL pLink)
        Method sets attribute link.
        Parameters:
        pLink - Value to which link should be set.
      • getProductID

        public java.util.UUID getProductID()
        Method returns attribute productID.
        Returns:
        UUID Value to which productID is set.
      • getSupportedCurrencies

        public java.util.Set<CurrencyCode> getSupportedCurrencies()
        Method returns association supportedCurrencies.
        Returns:
        Set Value to which supportedCurrencies is set. The method never returns null and the returned collection is modifiable.
      • addToSupportedCurrencies

        public void addToSupportedCurrencies​(CurrencyCode pSupportedCurrencies)
        Method adds the passed object to supportedCurrencies.
        Parameters:
        pSupportedCurrencies - Object that should be added to supportedCurrencies. The parameter must not be null.
      • addToSupportedCurrencies

        public void addToSupportedCurrencies​(java.util.Collection<CurrencyCode> pSupportedCurrencies)
        Method adds all passed objects to supportedCurrencies.
        Parameters:
        pSupportedCurrencies - Collection with all objects that should be added to supportedCurrencies. The parameter must not be null.
      • removeFromSupportedCurrencies

        public void removeFromSupportedCurrencies​(CurrencyCode pSupportedCurrencies)
        Method removes the passed object from supportedCurrencies.
        Parameters:
        pSupportedCurrencies - Object that should be removed from supportedCurrencies. The parameter must not be null.
      • clearSupportedCurrencies

        public void clearSupportedCurrencies()
        Method removes all objects from supportedCurrencies.
      • getProductCodes

        public java.util.Set<ProductCode> getProductCodes()
        Method returns association productCodes.
        Returns:
        Set Value to which productCodes is set. The method never returns null and the returned collection is modifiable.
      • addToProductCodes

        public void addToProductCodes​(ProductCode pProductCodes)
        Method adds the passed object to productCodes.
        Parameters:
        pProductCodes - Object that should be added to productCodes. The parameter must not be null.
      • addToProductCodes

        public void addToProductCodes​(java.util.Collection<ProductCode> pProductCodes)
        Method adds all passed objects to productCodes.
        Parameters:
        pProductCodes - Collection with all objects that should be added to productCodes. The parameter must not be null.
      • removeFromProductCodes

        public void removeFromProductCodes​(ProductCode pProductCodes)
        Method removes the passed object from productCodes.
        Parameters:
        pProductCodes - Object that should be removed from productCodes. The parameter must not be null.
      • clearProductCodes

        public void clearProductCodes()
        Method removes all objects from productCodes.
      • getDescription

        @Deprecated
        public java.lang.String getDescription()
        Deprecated.
        Method returns attribute description.
        Returns:
        String Value to which description is set.
      • setDescription

        @Deprecated
        public void setDescription​(java.lang.String pDescription)
        Deprecated.
        Method sets attribute description.
        Parameters:
        pDescription - Value to which description should be set.
      • getSortiments

        public java.util.Set<Sortiment> getSortiments()
        Method returns association sortiments.
        Returns:
        Set Value to which sortiments is set. The method never returns null and the returned collection is modifiable.
      • addToSortiments

        public void addToSortiments​(Sortiment pSortiments)
        Method adds the passed object to sortiments.
        Parameters:
        pSortiments - Object that should be added to sortiments. The parameter must not be null.
      • addToSortiments

        public void addToSortiments​(java.util.Collection<Sortiment> pSortiments)
        Method adds all passed objects to sortiments.
        Parameters:
        pSortiments - Collection with all objects that should be added to sortiments. The parameter must not be null.
      • removeFromSortiments

        public void removeFromSortiments​(Sortiment pSortiments)
        Method removes the passed object from sortiments.
        Parameters:
        pSortiments - Object that should be removed from sortiments. The parameter must not be null.
      • clearSortiments

        public void clearSortiments()
        Method removes all objects from sortiments.
      • getUri

        public java.lang.String getUri()
        Method returns attribute uri.
        Returns:
        String Value to which uri is set.
      • setUri

        public void setUri​(java.lang.String pUri)
        Method sets attribute uri.
        Parameters:
        pUri - Value to which uri should be set.
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.