@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 as many frameworks required that.
|
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 the association "productCodes".
|
void |
addToProductCodes(ProductCode pProductCodes)
Method adds the passed ProductCode object to the association "productCodes".
|
void |
addToResellers(Collection<Reseller> pResellers)
Method adds all passed objects to the association "resellers".
|
void |
addToResellers(Reseller pResellers)
Method adds the passed Reseller object to the association "resellers".
|
void |
addToSortiments(Collection<Sortiment> pSortiments)
Method adds all passed objects to the association "sortiments".
|
void |
addToSortiments(Sortiment pSortiments)
Method adds the passed Sortiment object to the association "sortiments".
|
void |
addToSupportedCurrencies(Collection<CurrencyCode> pSupportedCurrencies)
Method adds all passed objects to the association "supportedCurrencies".
|
void |
addToSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method adds the passed CurrencyCode object to the association "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.
|
void |
clearProductCodes()
Method removes all objects from the association "productCodes".
|
void |
clearResellers()
Method removes all objects from the association "resellers".
|
void |
clearSortiments()
Method removes all objects from the association "sortiments".
|
void |
clearSupportedCurrencies()
Method removes all objects from the association "supportedCurrencies".
|
String |
getDescription()
Deprecated.
|
com.anaptecs.jeaf.core.api.ServiceObjectID |
getID()
Method returns the id of this object.
|
byte[] |
getImage()
Method returns the attribute "image".
|
URL |
getLink()
Method returns the attribute "link".
|
String |
getName()
Method returns the attribute "name".
|
Set<ProductCode> |
getProductCodes()
Method returns the association "productCodes".
|
UUID |
getProductID()
Method returns the attribute "productID".
|
Set<Reseller> |
getResellers()
Method returns the association "resellers".
|
Set<Sortiment> |
getSortiments()
Method returns the association "sortiments".
|
Set<CurrencyCode> |
getSupportedCurrencies()
Method returns the association "supportedCurrencies".
|
com.anaptecs.jeaf.core.api.ServiceObjectID |
getUnversionedID()
Method returns the unversioned object id of this object.
|
String |
getUri()
Method returns the attribute "uri".
|
void |
removeFromProductCodes(ProductCode pProductCodes)
Method removes the passed ProductCode object from the association "productCodes".
|
void |
removeFromResellers(Reseller pResellers)
Method removes the passed Reseller object from the association "resellers".
|
void |
removeFromSortiments(Sortiment pSortiments)
Method removes the passed Sortiment object from the association "sortiments".
|
void |
removeFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method removes the passed CurrencyCode object from the association "supportedCurrencies".
|
void |
setDescription(String pDescription)
Deprecated.
|
void |
setImage(byte[] pImage)
Method sets the attribute "image".
|
void |
setLink(URL pLink)
Method sets the attribute "link".
|
void |
setName(String pName)
Method sets the attribute "name".
|
void |
setUri(String pUri)
Method sets the 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 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()
public void addToResellers(Reseller pResellers)
pResellers - Object that should be added to the association "resellers". The parameter must not be null.public void addToResellers(Collection<Reseller> pResellers)
pResellers - Collection with all objects that should be added to the association "resellers". The parameter
must not be null.public void removeFromResellers(Reseller pResellers)
pResellers - Object that should be removed from the association "resellers". The parameter must not be null.public void clearResellers()
public String getName()
public void setName(String pName)
pName - Value to which the attribute "name" should be set.public byte[] getImage()
public void setImage(byte[] pImage)
pImage - Value to which the attribute "image" should be set.public URL getLink()
public void setLink(URL pLink)
pLink - Value to which the attribute "link" should be set.public UUID getProductID()
public Set<CurrencyCode> getSupportedCurrencies()
public void addToSupportedCurrencies(CurrencyCode pSupportedCurrencies)
pSupportedCurrencies - Object that should be added to the association "supportedCurrencies". The parameter
must not be null.public void addToSupportedCurrencies(Collection<CurrencyCode> pSupportedCurrencies)
pSupportedCurrencies - Collection with all objects that should be added to the association
"supportedCurrencies". The parameter must not be null.public void removeFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)
pSupportedCurrencies - Object that should be removed from the association "supportedCurrencies". The parameter
must not be null.public void clearSupportedCurrencies()
public Set<ProductCode> getProductCodes()
public void addToProductCodes(ProductCode pProductCodes)
pProductCodes - Object that should be added to the association "productCodes". The parameter must not be null.public void addToProductCodes(Collection<ProductCode> pProductCodes)
pProductCodes - Collection with all objects that should be added to the association "productCodes". The
parameter must not be null.public void removeFromProductCodes(ProductCode pProductCodes)
pProductCodes - Object that should be removed from the association "productCodes". The parameter must not be
null.public void clearProductCodes()
@Deprecated public String getDescription()
@Deprecated public void setDescription(String pDescription)
pDescription - Value to which the attribute "description" should be set.public Set<Sortiment> getSortiments()
public void addToSortiments(Sortiment pSortiments)
pSortiments - Object that should be added to the association "sortiments". The parameter must not be null.public void addToSortiments(Collection<Sortiment> pSortiments)
pSortiments - Collection with all objects that should be added to the association "sortiments". The parameter
must not be null.public void removeFromSortiments(Sortiment pSortiments)
pSortiments - Object that should be removed from the association "sortiments". The parameter must not be null.public void clearSortiments()
public String getUri()
public void setUri(String pUri)
pUri - Value to which the attribute "uri" should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.