| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Product.builder() instead of private constructor to create new builder. |
protected |
Builder(Product pObject)
Use
Product.builder(Product) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Product |
build()
Method creates a new instance of class Product.
|
Product |
buildValidated()
Method creates a new validated instance of class Product.
|
Product.Builder |
setDescription(String pDescription)
Deprecated.
|
Product.Builder |
setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
Method sets the identifier for the object created using the builder.
|
Product.Builder |
setImage(byte[] pImage)
Method sets the attribute "image".
|
Product.Builder |
setLink(URL pLink)
Method sets the attribute "link".
|
Product.Builder |
setName(String pName)
Method sets the attribute "name".
|
Product.Builder |
setProductCodes(Set<ProductCode> pProductCodes)
Method sets the association "productCodes".
|
Product.Builder |
setProductID(UUID pProductID)
Method sets the attribute "productID".
|
Product.Builder |
setResellers(Set<Reseller> pResellers)
Method sets the association "resellers".
|
Product.Builder |
setSortiments(Set<Sortiment> pSortiments)
Method sets the association "sortiments".
|
Product.Builder |
setSupportedCurrencies(Set<CurrencyCode> pSupportedCurrencies)
Method sets the association "supportedCurrencies".
|
Product.Builder |
setUri(String pUri)
Method sets the attribute "uri".
|
protected Builder()
Product.builder() instead of private constructor to create new builder.protected Builder(Product pObject)
Product.builder(Product) instead of private constructor to create new builder.public Product.Builder setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
public Product.Builder setResellers(Set<Reseller> pResellers)
pResellers - Collection with objects to which the association should be set.public Product.Builder setName(String pName)
pName - Value to which the attribute "name" should be set.public Product.Builder setImage(byte[] pImage)
pImage - Value to which the attribute "image" should be set.public Product.Builder setLink(URL pLink)
pLink - Value to which the attribute "link" should be set.public Product.Builder setProductID(UUID pProductID)
pProductID - Value to which the attribute "productID" should be set.public Product.Builder setSupportedCurrencies(Set<CurrencyCode> pSupportedCurrencies)
pSupportedCurrencies - Collection with objects to which the association should be set.public Product.Builder setProductCodes(Set<ProductCode> pProductCodes)
pProductCodes - Collection with objects to which the association should be set.@Deprecated public Product.Builder setDescription(String pDescription)
pDescription - Value to which the attribute "description" should be set.public Product.Builder setSortiments(Set<Sortiment> pSortiments)
pSortiments - Collection with objects to which the association should be set.public Product.Builder setUri(String pUri)
pUri - Value to which the attribute "uri" should be set.public Product build()
public Product buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.