| 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 attribute
image. |
Product.Builder |
setLink(URL pLink)
Method sets attribute
link. |
Product.Builder |
setName(String pName)
Method sets attribute
name. |
Product.Builder |
setProductCodes(Set<ProductCode> pProductCodes)
Method sets association
productCodes. |
Product.Builder |
setProductID(UUID pProductID)
Method sets attribute
productID. |
Product.Builder |
setResellers(Set<Reseller> pResellers)
Method sets association
resellers. |
Product.Builder |
setSortiments(Set<Sortiment> pSortiments)
Method sets association
sortiments. |
Product.Builder |
setSupportedCurrencies(Set<CurrencyCode> pSupportedCurrencies)
Method sets association
supportedCurrencies. |
Product.Builder |
setUri(String pUri)
Method sets 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)
resellers.pResellers - Collection to which resellers should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setName(String pName)
name.pName - Value to which name should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setImage(byte[] pImage)
image.pImage - Value to which image should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setLink(URL pLink)
link.pLink - Value to which link should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setProductID(UUID pProductID)
productID.pProductID - Value to which productID should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setSupportedCurrencies(Set<CurrencyCode> pSupportedCurrencies)
supportedCurrencies.pSupportedCurrencies - Collection to which supportedCurrencies should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setProductCodes(Set<ProductCode> pProductCodes)
productCodes.pProductCodes - Collection to which productCodes should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.@Deprecated public Product.Builder setDescription(String pDescription)
description.pDescription - Value to which description should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setSortiments(Set<Sortiment> pSortiments)
sortiments.pSortiments - Collection to which sortiments should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.public Product.Builder setUri(String pUri)
uri.pUri - Value to which uri should be set.Product.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.