@Valid public class Product extends Object implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
| Modifier and Type | Class and Description |
|---|---|
static class |
Product.Builder
Class implements builder to create a new instance of class
Product. |
| Modifier | Constructor and Description |
|---|---|
protected |
Product()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
Product(Product.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToProductCodes(Collection<ProductCode> pProductCodes)
Method adds all passed objects to
productCodes. |
void |
addToProductCodes(ProductCode pProductCodes)
Method adds the passed object to
productCodes. |
void |
addToResellers(Collection<Reseller> pResellers)
Method adds all passed objects to
resellers. |
void |
addToResellers(Reseller pResellers)
Method adds the passed object to
resellers. |
void |
addToSortiments(Collection<Sortiment> pSortiments)
Method adds all passed objects to
sortiments. |
void |
addToSortiments(Sortiment pSortiments)
Method adds the passed object to
sortiments. |
void |
addToSupportedCurrencies(Collection<CurrencyCode> pSupportedCurrencies)
Method adds all passed objects to
supportedCurrencies. |
void |
addToSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method adds the passed object to
supportedCurrencies. |
static Product.Builder |
builder()
Method returns a new builder.
|
static Product.Builder |
builder(Product pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static Product.Builder |
builder(String pName,
URL pLink,
UUID pProductID,
String pDescription,
String pUri)
Method creates a new builder and initializes it with the passed attributes.
|
void |
clearProductCodes()
Method removes all objects from
productCodes. |
void |
clearResellers()
Method removes all objects from
resellers. |
void |
clearSortiments()
Method removes all objects from
sortiments. |
void |
clearSupportedCurrencies()
Method removes all objects from
supportedCurrencies. |
String |
getDescription()
Deprecated.
|
com.anaptecs.jeaf.core.api.ServiceObjectID |
getID()
Method returns the id of this object.
|
byte[] |
getImage()
Method returns attribute
image. |
URL |
getLink()
Method returns attribute
link. |
String |
getName()
Method returns attribute
name. |
Set<ProductCode> |
getProductCodes()
Method returns association
productCodes. |
UUID |
getProductID()
Method returns attribute
productID. |
Set<Reseller> |
getResellers()
Method returns association
resellers. |
Set<Sortiment> |
getSortiments()
Method returns association
sortiments. |
Set<CurrencyCode> |
getSupportedCurrencies()
Method returns association
supportedCurrencies. |
com.anaptecs.jeaf.core.api.ServiceObjectID |
getUnversionedID()
Method returns the unversioned object id of this object.
|
String |
getUri()
Method returns attribute
uri. |
void |
removeFromProductCodes(ProductCode pProductCodes)
Method removes the passed object from
productCodes. |
void |
removeFromResellers(Reseller pResellers)
Method removes the passed object from
resellers. |
void |
removeFromSortiments(Sortiment pSortiments)
Method removes the passed object from
sortiments. |
void |
removeFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method removes the passed object from
supportedCurrencies. |
void |
setDescription(String pDescription)
Deprecated.
|
void |
setImage(byte[] pImage)
Method sets attribute
image. |
void |
setLink(URL pLink)
Method sets attribute
link. |
void |
setName(String pName)
Method sets attribute
name. |
void |
setUri(String pUri)
Method sets attribute
uri. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected Product()
protected Product(Product.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Product.Builder builder()
Product.Builder New builder that can be used to create new Product objects.public static Product.Builder builder(Product pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Product.Builder New builder that can be used to create new Product objects. The method never returns null.public static Product.Builder builder(String pName, URL pLink, UUID pProductID, String pDescription, String pUri)
public final com.anaptecs.jeaf.core.api.ServiceObjectID getID()
getID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>ServiceObjectID ID of this object. Since an object must not have an id the method may also return
null.public final com.anaptecs.jeaf.core.api.ServiceObjectID getUnversionedID()
getUnversionedID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>ServiceObjectID ID of this object. Since an object must not have an id the method may also return
null.public Set<Reseller> getResellers()
resellers.Set Value to which resellers is set. The method never returns null and the
returned collection is modifiable.public void addToResellers(Reseller pResellers)
resellers.pResellers - Object that should be added to resellers. The parameter must not be null.public void addToResellers(Collection<Reseller> pResellers)
resellers.pResellers - Collection with all objects that should be added to resellers. The parameter must not be
null.public void removeFromResellers(Reseller pResellers)
resellers.pResellers - Object that should be removed from resellers. The parameter must not be null.public void clearResellers()
resellers.public void setName(String pName)
name.pName - Value to which name should be set.public byte[] getImage()
image.image is set.public void setImage(byte[] pImage)
image.pImage - Value to which image should be set.public void setLink(URL pLink)
link.pLink - Value to which link should be set.public Set<CurrencyCode> getSupportedCurrencies()
supportedCurrencies.Set Value to which supportedCurrencies is set. The method never returns null
and the returned collection is modifiable.public void addToSupportedCurrencies(CurrencyCode pSupportedCurrencies)
supportedCurrencies.pSupportedCurrencies - Object that should be added to supportedCurrencies. The parameter must not be
null.public void addToSupportedCurrencies(Collection<CurrencyCode> pSupportedCurrencies)
supportedCurrencies.pSupportedCurrencies - Collection with all objects that should be added to supportedCurrencies. The
parameter must not be null.public void removeFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)
supportedCurrencies.pSupportedCurrencies - Object that should be removed from supportedCurrencies. The parameter must not
be null.public void clearSupportedCurrencies()
supportedCurrencies.public Set<ProductCode> getProductCodes()
productCodes.Set Value to which productCodes is set. The method never returns null and the
returned collection is modifiable.public void addToProductCodes(ProductCode pProductCodes)
productCodes.pProductCodes - Object that should be added to productCodes. The parameter must not be null.public void addToProductCodes(Collection<ProductCode> pProductCodes)
productCodes.pProductCodes - Collection with all objects that should be added to productCodes. The parameter must
not be null.public void removeFromProductCodes(ProductCode pProductCodes)
productCodes.pProductCodes - Object that should be removed from productCodes. The parameter must not be null.public void clearProductCodes()
productCodes.@Deprecated public String getDescription()
description.String Value to which description is set.@Deprecated public void setDescription(String pDescription)
description.pDescription - Value to which description should be set.public Set<Sortiment> getSortiments()
sortiments.Set Value to which sortiments is set. The method never returns null and the
returned collection is modifiable.public void addToSortiments(Sortiment pSortiments)
sortiments.pSortiments - Object that should be added to sortiments. The parameter must not be null.public void addToSortiments(Collection<Sortiment> pSortiments)
sortiments.pSortiments - Collection with all objects that should be added to sortiments. The parameter must not
be null.public void removeFromSortiments(Sortiment pSortiments)
sortiments.pSortiments - Object that should be removed from sortiments. The parameter must not be null.public void clearSortiments()
sortiments.public void setUri(String pUri)
uri.pUri - Value to which uri should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.